On 9/30/15 9:11 AM, Adam Sanchez wrote:
> Hello
>
> I would like to retrieve explicitly stated triples for this simple query
>
> SELECT DISTINCT ?class {
> ?instance rdf:type ?class.
> FILTER (?instance = <http://dbpedia.org/resource/Lovedean>)
> }
>
> but Virtuoso includes inferred triples as well in the results.
>
> Then, instead to get only
>
> http://dbpedia.org/ontology/Settlement
>
> I get also
>
> http://dbpedia.org/ontology/Place
> http://dbpedia.org/ontology/PopulatedPlace
>
> How can I disable this feature in run time using OPTION.
>
> Thanks
>
> AdamAdam, Virtuoso doesn't inject inferred triples into SPARQL solutions if the inference rules pragmas aren't set. You are get a solution (unaltered) based on the data in the DBpedia instance. [1] http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&qtxt=SELECT+DISTINCT+%3Fg+%3Fclass+%7B+graph+%3Fg+%7B%0D%0A%3Finstance+rdf%3Atype+%3Fclass.%0D%0AFILTER+%28%3Finstance+%3D+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FLovedean%3E%29%7D%0D%0A%7D&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on -- Run this query. -- Regards, Kingsley Idehen Founder & CEO OpenLink Software Company Web: http://www.openlinksw.com Personal Weblog 1: http://kidehen.blogspot.com Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen 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 [email protected] https://lists.sourceforge.net/lists/listinfo/virtuoso-users
