rdfio / RDFIO

RDF triples import, export and PHP SPARQL endpoint for Semantic MediaWiki
http://www.mediawiki.org/wiki/Extension:RDFIO
Other
29 stars 12 forks source link

SPARQL Endpoint does not query by equivalent URIs for properties #1

Closed robsyme closed 11 years ago

robsyme commented 11 years ago

Hi Samuel

I hope I'm not simply using the tool incorrectly.

Given the query:

SELECT * 
WHERE { 
  ?s <http://example.org/id/Property-3APrice> ?o
}

Where $smwgNamespace = 'http://example.org/id/';

On the imported data:

<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:cd="http://www.recshop.fake/cd#"
    xmlns:countries="http://www.countries.org/onto/"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    >

    <rdf:Description
        rdf:about="http://www.recshop.fake/cd/Empire Burlesque">
          <cd:artist>Bob Dylan</cd:artist>
            <cd:country rdf:resource="http://www.countries.org/onto/USA"/>
              <cd:company>Columbia</cd:company>
                <cd:price>10.90</cd:price>
                  <cd:year>1985</cd:year>
              </rdf:Description>

    <rdf:Description
        rdf:about="http://www.recshop.fake/cd/Hide your heart">
            <cd:artist>Bonnie Tyler</cd:artist>
            <cd:country>UK</cd:country>
            <cd:company>CBS Records</cd:company>
            <cd:price>9.90</cd:price>
            <cd:year>1988</cd:year>
    </rdf:Description>

    <rdf:Description
       rdf:about="http://www.countries.org/onto/USA">
            <rdfs:label>USA</rdfs:label>
    </rdf:Description>

    <rdf:Description rdf:about="http://www.countries.org/onto/Albums">
         <rdfs:subClassOf rdf:resource="http://www.countries.org/onto/MediaCollections"/>
    </rdf:Description>
</rdf:RDF>

Checking the box "Output Equivalent URIs" changes the subject IDs as expected, but selecting "Query by Equivalent URIs", returns a HTTP Error 500 (Internal Server Error)when the query is run.

Can you replicate this?

samuell commented 11 years ago

Thanks for the report!

Will have a look!

Cheers // Samuel

On 04/16/2013 11:10 AM, Robert Syme wrote:

Oh wait. I see now. It joins on owl#sameAs, not owl#equivalentProperty or owl#equivalentClass. That makes sense. The 500 Error still looks like a bug though.

— Reply to this email directly or view it on GitHub https://github.com/samuell/RDFIO2/issues/1#issuecomment-16434161.

Developer at SNIC-UPPMAX www.uppmax.uu.se Developer at Dept of Pharm Biosciences www.farmbio.uu.se

samuell commented 11 years ago

On 04/16/2013 11:10 AM, Robert Syme wrote:

Oh wait. I see now. It joins on owl#sameAs, not owl#equivalentProperty or owl#equivalentClass. That makes sense. The 500 Error still looks like a bug though.

Indeed! Fixed now and pushed to master!

Many thanks for reporting! :)

Cheers // Samuel

robsyme commented 11 years ago

Nice! That was quick!