You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to implement content negotiation for turtle files with SchemaOrg site, so when user asks for:
curl -L -H "Accept: text/turtle" http://localhost:8080/Person , it will return turtle representation?
P.s. I used schema org for representing documentation of ontology/vocabulary and running it with GAE.
curl -L -v -H "Accept: application/ld+json" http://schema.org/ is actually working ... but im not sure if Context-definition is actually what you expect, at least i was expecting RDFS schema with Schema.org extensions.
curl -L -v -H "Accept: application/ld+json" http://schema.org/ is actually working ... but im not sure if Context-definition is actually what you expect, at least i was expecting RDFS schema with Schema.org extensions.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
We did this, and then we undid this. The site is now 100% static served, and faster. The JSON-LD context location is published in a JSON-LD 1.1-compliant HTTP header served by the homepage.
Does it actually work? Trying to get the json-ld format only gets you some nasty binary ouput. For example: curl -L -H "Accept: application/ld+json" https://schema.org/
A consuming application, when accessing the URL for a context document, should check the received http headers for a link header with a rel="alternate" value and a type="application/ld+json". If found it should use the document identified by the link URL instead of the received document.
This approach is an alternative to content-negotiation, as defined in the JSON-LD 1.1 standard.
Thanks for your responses. If i understood correctly the consuming application should follow the link tag to: http://schema.org/docs/jsonldcontext.jsonld. This file contains only json-ld context and not the actual vocabulary. Im looking for a way to resolve the schema.org as linked data vocabulary that contains the Class and Property definitions as well as the domainIcludes etc. information in RDF. If we consider - for example - the use case of RDF editor, is there any way to get the machine readable format for the schema.org vocabulary from the https//schema.org/ namespace?
On Thu, 14 Jan 2021 at 11:01, Richard Wallis ***@***.***> wrote:
A consuming application, when accessing the URL for a context document,
should check the received http headers for a link header with a
rel="alternate" value and a type="application/ld+json". If found it
should use the document identified by the link URL instead of the received
document.
This approach is an alternative to content-negotiation, as defined in the
JSON-LD 1.1 standard.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#703 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABJSGNBOTXETKFY2QQR2CTSZ3FKPANCNFSM4BM3PZEA>
.
We don't currently serve it from the namespace - it is relatively huge,
compared to some. There are lots of options at
https://schema.org/docs/developers.html though.
On Thu, 14 Jan 2021 at 11:18, amiika ***@***.***> wrote:
Thanks for your responses. If i understood correctly the consuming
application should follow the link tag to:
http://schema.org/docs/jsonldcontext.jsonld. This file contains only
json-ld context and not the actual vocabulary. Im looking for a way to
resolve the schema.org as linked data vocabulary that contains the Class
and Property definitions as well as the domainIcludes etc. information in
RDF. If we consider - for example - the use case of RDF editor, is there
any way to get the machine readable format for the schema.org vocabulary
from the https//schema.org/ namespace?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#703 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABJSGONBZFSVJ5UBM6O4QDSZ3HIPANCNFSM4BM3PZEA>
.
Thanks for the clarifications. I was really hoping that Schema.org would follow W3C best practice recipes for publishing RDF vocabularies. Even if the RDF vocabularies are huge, i really think that there should be machine readable way to access Schema.org vocabularies from the namespace address. Have you thought about using some sort of minified version? It could also be some sort Resource describing the alternative formats using seeAlso reference or void description.
With respect, some of us from Schema.org were deeply involved in
establishing W3C’s standards in this area (since 1997). There has long been
a lack of a working consensus on how to publish large vocabularies and
related datasets (like SKOS). You’re right that we could link via
rdfs:seeAlso, or maybe use VOID, but then there’s still a lack of
convention on concrete syntax for how to express that - rdfxml, turtle,
rdfa, microdata, jsonld would all be candidates (as are http headers etc.).
How about a bit of json-ld in schema.org homepage pointing at the latest
release files, in schema.org + rdfs/void? Is there any existing codebase
that would make use of such markup? Anyone care to post python / rdflib
snippets to show how to use it?
On Tue, 2 Feb 2021 at 09:31, amiika ***@***.***> wrote:
Thanks for the clarifications. I was really hoping that Schema.org would
follow W3C best practice recipes for publishing RDF vocabularies. Even if
the RDF vocabularies are huge, i really think that there should be machine
readable way to access Schema.org vocabularies from the namespace address.
Have you thought about using some sort of minified version? It could also
be some sort Resource describing the alternative formats using seeAlso
reference <https://www.w3.org/wiki/UsingSeeAlso> or void description
<https://www.w3.org/TR/void/>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#703 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABJSGLSSFBRXUHZFCIEU73S47A5TANCNFSM4BM3PZEA>
.
No disrespect meant, but I dont see how schemaorg-current comes any near comparison with some large datasets like some SKOS schemes. Seems like relatively small vocabulary, which could be served statically with some redirect rules to different RDF formats.
I might not see the reasoning behind the current solution. However - in my opinion - creating a new machine accessible convention is better than nothing. In our case, the syntax itself would not matter as the system is expecting any RDF format from the namespace. So for example a JSON-LD file resolved from the schema.org namespace with some hints (for example using rdfs:seeAlso or void:dataDump) to the actual vocabulary dumps would do. Not ideal, but better than nothing.
The home page uses link: </docs/jsonldcontext.jsonld>; rel="alternate"; type="application/ld+json" to find the context, instead of content negotiation, which is a feature we added in JSON-LD 1.1 due to issues with modern publication platforms to do CN. Something similar, perhaps with a different link relation, could be done to point to alternate representations of the vocabulary.
Given the controversy surrounding content negotiation in the wider web, having an alternative established as a best practice that accomplishes the same goals using more common mechanisms (if link headers can be considered common) would seem to be worthwhile.
But, there seem to be two issues: how to find the vocabulary definitions, and how to deal with large vocabularies.
Activity
unor commentedon Aug 6, 2015
See #317
amiika commentedon Oct 14, 2016
Content negotiation should work from "http://schema.org/" and include all supported formats:
text/turtle (Turtle)
application/n-quads (Quad)
application/n-triples (Ntriples)
application/ld+json (JSON-LD)
application/xhtml+xml (RDFa)
amiika commentedon Oct 14, 2016
curl -L -v -H "Accept: application/ld+json" http://schema.org/ is actually working ... but im not sure if Context-definition is actually what you expect, at least i was expecting RDFS schema with Schema.org extensions.
Dataliberate commentedon Oct 14, 2016
This is not live on Schema.org yet - it will be in the next version.
However it is visible on the prerelease site webschemas.org
~Richard
danbri commentedon Jul 17, 2020
We did this, and then we undid this. The site is now 100% static served, and faster. The JSON-LD context location is published in a JSON-LD 1.1-compliant HTTP header served by the homepage.
amiika commentedon Jan 14, 2021
Does it actually work? Trying to get the json-ld format only gets you some nasty binary ouput. For example: curl -L -H "Accept: application/ld+json" https://schema.org/
RichardWallis commentedon Jan 14, 2021
As per @danbri's comment
The reference: https://www.w3.org/2018/jsonld-cg-reports/json-ld/#interpreting-json-as-json-ld
As served by schema.org:
curl -v https://schema.orgamiika commentedon Jan 14, 2021
I don't really see or understand how one could get machine readable vocabulary with this solution.
RichardWallis commentedon Jan 14, 2021
A consuming application, when accessing the URL for a context document, should check the received http headers for a
linkheader with arel="alternate"value and atype="application/ld+json". If found it should use the document identified by the link URL instead of the received document.This approach is an alternative to content-negotiation, as defined in the JSON-LD 1.1 standard.
amiika commentedon Jan 14, 2021
Thanks for your responses. If i understood correctly the consuming application should follow the link tag to: http://schema.org/docs/jsonldcontext.jsonld. This file contains only json-ld context and not the actual vocabulary. Im looking for a way to resolve the schema.org as linked data vocabulary that contains the Class and Property definitions as well as the domainIcludes etc. information in RDF. If we consider - for example - the use case of RDF editor, is there any way to get the machine readable format for the schema.org vocabulary from the https//schema.org/ namespace?
danbri commentedon Jan 14, 2021
danbri commentedon Jan 14, 2021
amiika commentedon Feb 2, 2021
Thanks for the clarifications. I was really hoping that Schema.org would follow W3C best practice recipes for publishing RDF vocabularies. Even if the RDF vocabularies are huge, i really think that there should be machine readable way to access Schema.org vocabularies from the namespace address. Have you thought about using some sort of minified version? It could also be some sort Resource describing the alternative formats using seeAlso reference or void description.
danbri commentedon Feb 2, 2021
amiika commentedon Feb 2, 2021
No disrespect meant, but I dont see how schemaorg-current comes any near comparison with some large datasets like some SKOS schemes. Seems like relatively small vocabulary, which could be served statically with some redirect rules to different RDF formats.
I might not see the reasoning behind the current solution. However - in my opinion - creating a new machine accessible convention is better than nothing. In our case, the syntax itself would not matter as the system is expecting any RDF format from the namespace. So for example a JSON-LD file resolved from the schema.org namespace with some hints (for example using rdfs:seeAlso or void:dataDump) to the actual vocabulary dumps would do. Not ideal, but better than nothing.
gkellogg commentedon Feb 15, 2021
The home page uses
link: </docs/jsonldcontext.jsonld>; rel="alternate"; type="application/ld+json"to find the context, instead of content negotiation, which is a feature we added in JSON-LD 1.1 due to issues with modern publication platforms to do CN. Something similar, perhaps with a different link relation, could be done to point to alternate representations of the vocabulary.Given the controversy surrounding content negotiation in the wider web, having an alternative established as a best practice that accomplishes the same goals using more common mechanisms (if link headers can be considered common) would seem to be worthwhile.
But, there seem to be two issues: how to find the vocabulary definitions, and how to deal with large vocabularies.