Problem with SPARQL query
I have the following query that is not working:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema%23>
PREFIX i开发者_StackOverflow: <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" .}
I used a query validator that throws the following exception:
Encountered " "?metric "" at line 9, column 1.
Was expecting one of:
"graph" ...
"optional" ...
"service" ...
"minus" ...
"filter" ...
"{" ...
"}" ...
";" ...
"," ...
"." ...
But i don't know what that means
You probably want to add a period .
after the graph pattern ?metric i:hasValue ?value
.
精彩评论