Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in JSON-LD serialization #5

Open
lanthaler opened this issue Dec 4, 2012 · 0 comments
Open

Bug in JSON-LD serialization #5

lanthaler opened this issue Dec 4, 2012 · 0 comments

Comments

@lanthaler
Copy link

There's a bug in the JSON-LD serialization. Type coercions are applied to the full IRIs instead of applying them to the compact IRIs used in the document. Example:

{
  "@context": {
    "owl": "http://www.w3.org/2002/07/owl#",
    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
    "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "http://www.w3.org/2000/01/rdf-schema#isDefinedBy": {  <-- should be rdfs:isDefinedBy
      "@type": "@id"
    },
    "http://www.w3.org/2000/01/rdf-schema#seeAlso": {      <-- should be rdfs:seeAlso
      "@type": "@id"
    }
  },
  "@id": "http://www.w3.org/ns/json-ld#context",
  "@type": "rdf:Property",
  "rdfs:label": {
    "@value": "JSON-LD context",
    "@language": "en"
  },
  "rdfs:isDefinedBy": {
    "@id": "http://www.w3.org/ns/json-ld",
    "@type": "owl:Ontology",
    "rdfs:label": {
      "@value": "The JSON-LD Vocabulary",
      "@language": "en"
    },
    "rdfs:comment": {
      "@value": "This is a vocabulary document and is used to achieve certain features of the JSON-LD language.",
      "@language": "en"
    }
  },
  "rdfs:seeAlso": "http://www.w3.org/TR/json-ld-syntax/#referencing-contexts-from-json-documents",
  "rdfs:comment": {
    "@value": "This link relation is used to reference a JSON-LD context from a JSON document so that it can be interpreted as JSON-LD.",
    "@language": "en"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant