cannata
(Phil Cannata)
February 27, 2018, 2:25am
1
I'm trying to create a property assertion "on a class" in such a way that a reasoner could infer the property to be had by all of its members.
I'm try to follow a StackOverflow note at
I have the following in an .n3 file:
carnot:Event
rdf:type rdfs:Class ;
rdf:type sh:NodeShape ;
rdfs:label "Event" ;
rdfs:subClassOf (schema:startDate value "1800-01-01T00:00:00+05:30"^^xsd:dateTime) ;
rdfs:subClassOf schema:Event .
When I try to load the .n4 file, I get the following error
Expected ':', found ' ' [line 5]
Is this not supported in Stardog?
thanks
phil
jess
(Jess Balint)
February 27, 2018, 2:29am
2
Protege uses the Manchester syntax here but you will need to use the Turtle serialization for Stardog. If you look further down the answer, you will see an example of this:
:C a owl:Class ;
rdfs:subClassOf [ a owl:Restriction ;
owl:hasValue :v ;
owl:onProperty :p
] .
Try this syntax.
Jess
cannata
(Phil Cannata)
February 27, 2018, 2:42am
3
That worked.
Thanks again.
phil
cannata
(Phil Cannata)
February 27, 2018, 3:19am
4
Actually, it worked syntactically, i.r.,
prefix carnot: <http://Carnot.org/> .
carnot:Event a owl:Class ;
rdfs:subClassOf [ a owl:Restriction ;
owl:hasValue 0 ;
owl:onProperty carnot:setStartDate
] .
But it didn’t the value to members of Pairing, which is a subClass of Event.
phil
lorenz_b
(Lorenz B.)
February 27, 2018, 6:50am
5
cannata:
didn’t the value
Didn't what? "Add"? How did you check this? Sample data + query or the general procedure would be helpful indeed.
system
(system)
Closed
March 13, 2018, 6:50am
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.