SPARQL查询问题

时间:2010-12-07 09:54:03

标签: c# .net sparql

我有以下不起作用的查询:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema%23>
PREFIX i: <http://evolizer.org/ontologies/seon/2010/09/softwaremetrics.owl%23>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns%23>
SELECT ?metric ?value
WHERE {
?metric rdf:type i:SoftwareDesignMetric .
?metric i:hasName "NOM" .
?metric i:hasValue ?value 
?metric i:isMetricOf "http://130.60.156.155:8080/famixParser/projects/argouml/org.argouml.pattern.cognitive" .}

我使用query validator会引发以下异常:

Encountered "  "?metric "" at line 9, column 1.
Was expecting one of:
    "graph" ...
    "optional" ...
    "service" ...
    "minus" ...
    "filter" ...
    "{" ...
    "}" ...
    ";" ...
    "," ...
    "." ...

但我不知道这意味着什么

1 个答案:

答案 0 :(得分:3)

您可能希望在图表模式.之后添加句点?metric i:hasValue ?value