[ 
https://issues.apache.org/jira/browse/RYA-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kiet Ly resolved RYA-93.
------------------------
    Resolution: Fixed

see comment.

> 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