我有这个RDF文件,我喜欢通过查询来选择单个标记,但是我不能。有人能帮我吗?
<rdf:RDF xmlns="http://www.w3.org/2003/01/geo/wgs84_pos#"
xml:base="http://www.w3.org/2003/01/geo/wgs84_pos"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<owl:NamedIndividual rdf:about="http://www.co-ode.org/ontologies/ont.owl#mark">
<lat rdf:datatype="&xsd;double">121231.0</lat>
<alt rdf:datatype="&xsd;double">2131.0</alt>
</owl:NamedIndividual>发布于 2012-12-12 02:14:09
您尝试选择的值具有数据类型,因此必须在查询中包括该数据类型,即
PREFIX : <http://www.w3.org/2003/01/geo/wgs84_pos>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?x
WHERE
{
?x :lat "121231.0"^^xsd:double
}否则,术语不匹配,将不会选择任何内容
https://stackoverflow.com/questions/13824778
复制相似问题