On 8/16/16 9:16 AM, Eng.Bassam wrote: > Hi > > Suppose I have an ontology for fruits: > Bana is Fruit. > Apple is Fruit. > > Also suppose I have other dataset that contains: > > Bassam eat Apple. > Husam eat Banana. > > Can I do following question (SPARQL query) using Virtuoso, Who eat Fruits? > the answer must be Bassam and Husam, because there is an inference > (Banana and Apple are fruits) > > Thanks > > -- > ----------------------------------- > > Eng.Bassam Najeeb. > >Software Engineer.
Please read about reasoning and inference pragma use in the example at [1]. Note: my demos are live and sometimes the underlying data might change which can affect expected results, but in this case the post will show you how to map your RDF statements to an Inference Rule which then apply in-built reasoning on RDF Schema and most OWL relationship type semantics. For your example, I sense you are looking for Custom Inference Rules. If so, then you should look at [2] which demonstrates this feature. That said, the feature is part of Virtuoso 8.0 (which are are about to release, but in Commercial Edition mode only for this feature). Links: [1] https://medium.com/virtuoso-blog/using-british-royal-family-data-snippets-to-demonstrate-sparql-query-language-based-reasoning-56626a152419 [2] https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen Kingsley > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users -- Regards, Kingsley Idehen Founder & CEO OpenLink Software (Home Page: http://www.openlinksw.com) Medium Blog: https://medium.com/@kidehen Blogspot Blog: http://kidehen.blogspot.com Twitter Profile: https://twitter.com/kidehen Google+ Profile: https://plus.google.com/+KingsleyIdehen/about LinkedIn Profile: http://www.linkedin.com/in/kidehen Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------
_______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users