rdf - how to generate triples by using sparql entailment rules in DotnetRDF? -


i defined classes in rdf file, , subclasses inherited using protege following:

  • person class.
    • employee subclass of person.
      • ex-employee subclass of employee.

for example if have ex-employee instances want generate , insert them instances employee class.

also if have employee instances want insert them instances of person class.

what asking how generate triples based on inheritance relationship between these classes following statement ?

insert mygraphfile    {?newinstance rdf:type ?y} mygraphfile { ?newinstance rdf:type ?x. ?x rdfs:subclassof ?y. } 

how can using dotnetrdf?

also appreciate example illustrates entailment rules in sparql dotnetrdf library.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -