Lewis wrote:
> ###
> http://www.semanticweb.org/ontologies/2010/11/section6energydomestic2010.owl#exampleGlazingToConservatory
>
> section6energydomestic2010:exampleGlazingToConservatory rdf:type
> section6energydomestic2010:Glazing ,
>
> owl:NamedIndividual ;
>
>
> section6energydomestic2010:hasMaximumAreaWeightedAverageUvalueForAllElementsOfTheSameTypeWperm²K
> "2.0"^^xsd:double ;
>
>
> section6energydomestic2010:hasMaximumIndividualElementUvalueWperm²K
> "3.3"^^xsd:double .
>
> I am confused as to how to construct my query, so far I have
>
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> 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#>
> PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
> PREFIX apf: <http://jena.hpl.hp.com/ARQ/property#>
> PREFIX dc: <http://purl.org/dc/elements/1.1/>
> PREFIX ns:
> <http://www.semanticweb.org/ontologies/2010/11/section6energydomestic2010.owl#exampleGlazingToConservatory/>
> SELECT ?type ?NamedInidividual ?b ?double
(typo in second name)
> WHERE { ?b rdf:type ?type;
> owl:NamedIndividual ?NamedIndividual;
> xsd:double ?double .
> FILTER (?double < 2.5)}
There's something wrong with how you're thinking of this, but I'm not
sure how best to explain it. There is no statement with property xsd:double
in your data, so the query cannot succeed. Similarly there are no statements
with property owl:NamedIndividual; ditto.
What you've written for the triples is shorthand for
?b rdf:type ?type.
?b owl:NamedIndividual ?NamedIndividual.
?b xsd:double ?double .
Your properties -- the middle terms of the triples, eg
section6energydomestic2010:hasMaximumAreaWeightedAverageUvalueForAllElementsOfTheSameTypeWperm²K
(which is a horribly long name to be using) -- don't match any of those.
I would write one version of what you might want as
SELECT ?NamedIndividual ?p ?v WHERE
{
?NamedIndividual rdf:type owl:NamedIndividual.
?NamedIndividual ?p ?v.
FILTER (?v < 2.5)
}
which will get you
Individual URI | property URI | numeric value
Chris
PS ?x ?p ?y queries can be very expensive.
--
"I don't want to know what the Structuralists think! I want /Archer's Goon/
to know what YOU think!"
Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)