On 08/03/17 13:29, kumar rohit wrote:
Is there any problem in this rule. I am getting error here.
What error?
It is much easier for us to help if you say explicitly what went wrong!
I used jena
generic rule reasoner so is it sufficient also for executing rdfs sub class
rules?
*[rule1:(?x http://www.w3.org/1999/02/22-rdf-syntax-ns#type
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
http://www.semanticweb.org/t/ontologies#MasterStudent
<http://www.semanticweb.org/t/ontologies#MasterStudent>) "*
* + "( http://www.semanticweb.org/t/ontologies#MasterStudent
<http://www.semanticweb.org/t/ontologies#MasterStudent>)
http://www.w3.org/2000/01/rdf-schema#subClassOf
<http://www.w3.org/2000/01/rdf-schema#subClassOf>
http://www.semanticweb.org/t/ontologies#Student
<http://www.semanticweb.org/t/ontologies#Student> )"*
* + " -> (?x http://www.w3.org/1999/02/22-rdf-syntax-ns#type
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
http://www.semanticweb.org/t/ontologies#Student
<http://www.semanticweb.org/t/ontologies#Student> )]"*
Almost impossible to read but at a glance it looks OK.
1. Please post messages as plain text. Your emailer has done horrid
things to the URIs.
2. The rule would be much easier to read if you use prefixes instead of
writing out the URIs longhand.
3. It's also possible to use the standard generic RDFS rules. You don't
have to write out your own special case rules for each subClassOf
relationship.
Dave