Git Product home page Git Product logo

Comments (5)

tian2992 avatar tian2992 commented on June 18, 2024

I think we can store metadata using a file containing a JSON with the keys and values of the knitting metadata. I will draft a demo and post it here.

Using relative URI allow us for the using of remote patterns from URIs, local data, and bundled files.

from 2018.fossasia.org.

dl1com avatar dl1com commented on June 18, 2024

As long as the metadata format is kept simple, so you do not need a dedicated program/editor to generate such a file, I am completely fine with JSON. Also, I like the idea of URI handling.
Anyway, it should be kept so simple to be able to do manual modifications using an editor.

Of course, in a second step we could think about an editor to generate the metadata file, but this might be better done in a dedicated discussion about a pattern editor.

What we will need in any way would be some piece of code to syntax-check/verify a metadata file (probably also against a pattern file).

from 2018.fossasia.org.

tian2992 avatar tian2992 commented on June 18, 2024

Found about http://json-schema.org/ we can use small code blocks to validate against a schema file. https://pypi.python.org/pypi/jsonschema http://www.alexconrad.org/2011/10/json-validation.html

from 2018.fossasia.org.

dl1com avatar dl1com commented on June 18, 2024

@tian2992 very nice, that's exactly what I thought of! 👍

from 2018.fossasia.org.

tian2992 avatar tian2992 commented on June 18, 2024

@chris007de thanks!, I left some comments on the PR fossasia/knitpat#1
@andibraeu can you take a look too please?

from 2018.fossasia.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.