GithubHelp home page GithubHelp logo

Clarify prefix expansion about json-ld.org HOT 4 CLOSED

json-ld avatar json-ld commented on July 22, 2024
Clarify prefix expansion

from json-ld.org.

Comments (4)

lanthaler avatar lanthaler commented on July 22, 2024

Gregg's suggestion:

It should say "concatentating the prefix and suffix separated by a colon (:)." If a key matches a production containing NCNAME ':' followed by anything else, and the NCNAME portion (prefix) matches a defined term, the prefix ':' combination is replaced by the value of the term definition. In these examples, you should get the following:

<> <http://example.com/payment/payment> "done" .
<> <http://example.com/payment/amount> "20.4"^^xsd:double .

The only portion of the key subject to term replacement is the prefix, everything after the colon is used without performing any substitution.

from json-ld.org.

lanthaler avatar lanthaler commented on July 22, 2024

This is now well described In the latest version of the API spec but we might wanna include some of the details as well in the syntax spec.

from json-ld.org.

gkellogg avatar gkellogg commented on July 22, 2024

I tried to make more explicit how terms and prefix:suffix are expanded in the IRIs section of Basic Concepts. If you think this is now clear enough, please mark the issue as closed, and this will complete my action item from the last call.

from json-ld.org.

msporny avatar msporny commented on July 22, 2024

http://json-ld.org/spec/ED/json-ld-syntax/20120122/#the-context

http://json-ld.org/spec/ED/json-ld-syntax/20120122/#prefixes

http://json-ld.org/spec/ED/json-ld-syntax/20120122/#iri-expansion-within-a-context

from json-ld.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.