1

我有以下不工作的查询:

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" .}

我使用了一个引发以下异常的查询验证器:

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

但我不知道那是什么意思

4

1 回答 1

3

您可能想.在图形模式之后添加一个句点?metric i:hasValue ?value

于 2010-12-07T10:40:46.127 回答