|
From: Marco R. <cre...@go...> - 2007-08-22 08:10:47
|
Thank you all!
It looks like a classical human failure - problem to me :))
But it works just fine now. By declaring the right namespaces with the right
URIs I even get the results I expect!
While we are at it two more questions:
1.) Does RAP come along with a count-construct in the select-statement? I
only found information, that count returns an integer, but nothing further
more. So is it possible to use somelike
prefix ... select count(?var) where {...}
2.) My rdf-dump declares namespaces with uris. Therefore shouldn't it
possible to use my query-statements without using the PREFIX-constructs?
The xml-file starts like this:
<?xml version=" 1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
<!ENTITY rdf
'http://www.w3.org/1999/02/22-rdf-syntax-ns#'<http://www.w3.org/1999/02/22-rdf-syntax-ns#%27>
>
<!ENTITY rdfs '
http://www.w3.org/2000/01/rdf-schema#'<http://www.w3.org/2000/01/rdf-schema#%27>
>
<!ENTITY owl
'http://www.w3.org/2002/07/owl#'<http://www.w3.org/2002/07/owl#%27>>
<!ENTITY smw
'http://smw.ontoware.org/2005/smw/'<http://smw.ontoware.org/2005/smw/%27>
>
<!ENTITY smwdt 'http://smw.ontoware.org/2005/smw-datatype#'
<http://smw.ontoware.org/2005/smw-datatype#%27>>
<!ENTITY wiki
'http://localhost/sop-2Ddev/index.php/'<http://localhost/sop-2Ddev/index.php/%27>
>
<!ENTITY thing '
http://localhost/sop-2Ddev/index.php/_'<http://localhost/sop-2Ddev/index.php/_%27>
>
<!ENTITY relation
'http://localhost/sop-2Ddev/index.php/_Relation-3A'<http://localhost/sop-2Ddev/index.php/_Relation-3A%27>
>
<!ENTITY attribute '
http://localhost/sop-2Ddev/index.php/_Attribut-3A'<http://localhost/sop-2Ddev/index.php/_Attribut-3A%27>
>
<!ENTITY dc 'http://purl.org/dc/elements/1.1/'
<http://purl.org/dc/elements/1.1/%27>>
<!ENTITY wikiurl
'http://localhost/sop-dev/index.php/'<http://localhost/sop-dev/index.php/%27>
>
]>
<rdf:RDF
xmlns:rdf="&rdf;"
xmlns:rdfs="&rdfs;"
xmlns:owl ="&owl;"
xmlns:smw="&smw;"
xmlns:wiki="&wiki;"
xmlns:thing="&thing;"
xmlns:relation="&relation;"
xmlns:attribute="&attribute;"
xmlns:dc="&dc;"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<!-- reference to the Semantic MediaWiki schema -->
<owl:AnnotationProperty rdf:about="&smw;hasArticle">
<rdfs:isDefinedBy rdf:resource="http://smw.ontoware.org/2005/smw"/>
</owl:AnnotationProperty>
<owl:AnnotationProperty rdf:about="&smw;hasType">
<rdfs:isDefinedBy rdf:resource="http://smw.ontoware.org/2005/smw"/>
</owl:AnnotationProperty>
<owl:Class rdf:about="&smw;Thing">
<rdfs:isDefinedBy rdf:resource="http://smw.ontoware.org/2005/smw"/>
</owl:Class>
<!-- exported page data -->
Thanks again and I appreciate your help!
Marco
|