[ 
https://issues.apache.org/jira/browse/RYA-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15342288#comment-15342288
 ] 

David W. Lotts commented on RYA-93:
-----------------------------------

If you have inferencing ("query.infer") turned on (post your configuration),
then post the query plan.  I think the DirectExample does that by default:  
extras/indexingExample/src/main/java/RyaDirectExample.java

>From 
>common/rya.api/src/main/java/mvm/rya/api/RdfCloudTripleStoreConfiguration.java
These are the properties:
public static final String CONF_INFER = "query.infer";
public static final String INFER_INCLUDE_INVERSEOF = "infer.include.inverseof";
public static final String INFER_INCLUDE_SUBCLASSOF = 
"infer.include.subclassof";
public static final String INFER_INCLUDE_SUBPROPOF = "infer.include.subpropof";
public static final String INFER_INCLUDE_SYMMPROP = "infer.include.symmprop";
public static final String INFER_INCLUDE_TRANSITIVEPROP = 
"infer.include.transprop";

> owl:SymmetricProperty/owl:inverseOf failed
> ------------------------------------------
>
>                 Key: RYA-93
>                 URL: https://issues.apache.org/jira/browse/RYA-93
>             Project: Rya
>          Issue Type: Bug
>         Environment: rya develop branch + Accumulo 1.6.5
>            Reporter: Kiet Ly
>            Assignee: Puja Valiyil 
>
> I tested out a simple example from a book.
> Here is the turtle file.
> @prefix ab: <http://learningsparql.com/ns/addressbook#> .
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
> @prefix owl: <http://www.w3.org/2002/07/owl#> .
> ab:i0432
> ab:firstName "Richard" ;
> ab:lastName "Mutt" ;
> ab:spouse ab:i9771 .
> ab:i8301
> ab:firstName "Craig" ;
> ab:lastName "Ellis" ;
> ab:patient ab:i9771 .
> ab:i9771
> ab:firstName "Cindy" ;
> ab:lastName "Marshall" .
> ab:spouse
> rdf:type owl:SymmetricProperty ;
> rdfs:comment "Identifies someone's spouse" .
> ab:patient
> rdf:type rdf:Property ;
> rdfs:comment "Identifies a doctor's patient" .
> ab:doctor
> rdf:type rdf:Property ;
> rdfs:comment "Identifies a doctor treating the named resource" ;
> owl:inverseOf ab:patient .
> and the query file.
> PREFIX ab: <http://learningsparql.com/ns/addressbook#>
> SELECT ?doctorFirst ?doctorLast ?spouseFirst ?spouseLast
> WHERE
> {
> ?s ab:firstName "Cindy" ;
> ab:lastName "Marshall" ;
> ab:doctor ?doctor ;
> ab:spouse ?spouse .
> ?doctor ab:firstName ?doctorFirst ;
> ab:lastName ?doctorLast .
> ?spouse ab:firstName ?spouseFirst ;
> ab:lastName ?spouseLast .
> }
> I got empty result instead.
>   "head" : {
>     "vars" : [ "doctorFirst", "doctorLast", "spouseFirst", "spouseLast" ]
>   },
>   "results" : {
>     "bindings" : [ ]
>   }
> }
> I expect this result.
> doctorFirst   doctorLast      spouseFirst     spouseLast
> Craig         Ellis                   Richard         Mutt



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to