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
Hey DhansheeA, I have worked on the issue and fixed it. Now you can add more than one data-type(or any property) at once as you mentioned in the code.
The below line will work fine
g.add((URIRef(ns+"Answer"), OWL.unionOf, (XSD.string, XSD.boolean, XSD.positiveInteger))
I have observed there may be a typo in the line :
g.add((URIRef(ns+"answer_value"), RDF.type, RDFS.Property))
Property term is defined in RDF class but not in RDFS.
Reacted by Dhanshree Arora and Murali Krishna Kasthala
@ashleysommer I believe @MuraliKrishna26 is talking about RDF.Property and is correct in pointing out that Property is in RDF Class and not RDFS. :) I am a bit rusty on the spec itself, but at least within this Python implementation RDFS.Property does not seem to be the case.
Activity
MuraliKrishna26 commentedon May 30, 2020
Hey DhansheeA, I have worked on the issue and fixed it. Now you can add more than one data-type(or any property) at once as you mentioned in the code.
The below line will work fine
g.add((URIRef(ns+"Answer"), OWL.unionOf, (XSD.string, XSD.boolean, XSD.positiveInteger))
I have observed there may be a typo in the line :
g.add((URIRef(ns+"answer_value"), RDF.type, RDFS.Property))
Property term is defined in RDF class but not in RDFS.
ashleysommer commentedon Aug 5, 2020
@MuraliKrishna26
RDF.type is correct. Even though it is specified in the RDFS spec, the
typepredicate intentionally usesrdf:type.See https://en.wikipedia.org/wiki/RDF_Schema
DhanshreeA commentedon Aug 18, 2020
@ashleysommer I believe @MuraliKrishna26 is talking about
RDF.Propertyand is correct in pointing out that Property is in RDF Class and not RDFS. :) I am a bit rusty on the spec itself, but at least within this Python implementationRDFS.Propertydoes not seem to be the case.ashleysommer commentedon Aug 18, 2020
Yes, you're right. I misread what @MuraliKrishna26 had written.