I'm trying to generate the following using the rdflib-jsonld plugin.
"rdfs:label": {
"en": "mentors",
},
"owl:inverseOf": {
"rdfs:label": {
"en": "is mentored by",
}
I haven't figured out how to get the nested structure of inverseOf - label. Here's a snippet of my attempt, which didn't seem right and isn't.
ref = URIRef(some_namespace["mentor"])
store.add((ref, RDFS.label, Literal("mentors", lang="en")))
store.add((ref, RDFS.label, Literal("is mentored by", lang="en")))
store.add((ref, OWL.inverse, Literal("is mentored by")))
This gives:
"owl:inverse": "is mentored by",
"rdfs:label": [
{
"@language": "en",
"@value": "is mentored by"
},
{
"@language": "en",
"@value": "mentors"
}
]
Thanks in advance for your help!
Lynn
--
http://github.com/RDFLib
---
You received this message because you are subscribed to the Google Groups "rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdflib-dev+...@googlegroups.com.
To post to this group, send email to rdfli...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/d8aa093c-ea69-477c-a959-a3851959dd8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
http://github.com/RDFLib
---
You received this message because you are subscribed to a topic in the Google Groups "rdflib-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rdflib-dev/U9Czox7kQL0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rdflib-dev+...@googlegroups.com.
To post to this group, send email to rdfli...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/CADjV5jfKaPnBvDB_0Jyo4VyEBM5eVmx0E-baqS0SVN_ZdT23Bw%40mail.gmail.com.