-
Notifications
You must be signed in to change notification settings - Fork 71
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
Handle SDO-style schemas #108
Comments
https://github.com/RDFLib/pyLODE#annotations says that SDO props are supported:
(as well as probably all the additional annotation props from my patch above). But there's a bug then, compare:
Note: it turns out that SSN doesn't use SDO constructs, SOSA does. |
pylode bails on SDO: pylode -u https://schema.org/version/latest/schemaorg-current-http.ttl -c true -o schema.html
"Your RDF file does not define an ontology"
|
After removing all unicode chars:
It looks about ok, with the following fixes needed:
A BreadcrumbList is an ItemList consisting of a chain of linked Web pages,
typically described using at least their URL and their name, and typically ending with the current page.<br/><br/>
The <a class="localLink" href="http://schema.org/position">position</a> property
is used to reconstruct the order of the items in a BreadcrumbList
The convention is that a breadcrumb list has an <a class="localLink" href="http://schema.org/itemListOrder">itemListOrder</a> of
<a class="localLink" href="http://schema.org/ItemListOrderAscending">ItemListOrderAscending</a> is rendered as
In other words it parses the HTML and turns it to internal markdown, but then the markdown is not translated to corresponding html
PS: Let me know if you want schema-with-removed-UTF8.ttl (the fixed input) and schema.html (the output) |
I'm looking in to this Issue now |
Compare these examples:
|
@VladimirAlexiev can you try the latest versions of pyLODE (v2.9.x) for this task? It should correctly handle |
eccenca/jod#15 asks the same props to be handled in 3 namespaces: |
schema.org doesn't use rdfs:domain and range.
Some other important ontologies have adopted this style. eg SSN, SOSA (according to @dr-shorthair), WOT TD.
Our euBusinessGraph SWJ paper describes the benefits of such lighter way approach.
Can you support this style in PyLODE?
See essepuntato/LODE#12 for details, and essepuntato/LODE#13 for more details, and an implementation as a patch to LODE's XSL (doing this patching made me appreciate you decided to rewrite without using XSL).
You already have included two examples to test it: SSN, SOSA (I currently don't see any domain/range). Also test on schema.org, as it's pretty big.
The text was updated successfully, but these errors were encountered: