c# - Whats wrong with this SPARQL query? -
string sparql = ""; sparql+= "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n"; sparql+= "prefix i: <http://evolizer.org/ontologies/seon/2010/09/softwaremetrics.owl#>\n"; sparql+= "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n"; sparql+="select ?metric ?value\n"; sparql+="where {\n"; sparql+="?metric rdf:type i:softwaredesignmetric .\n"; sparql+="?metric i:hasname mccabe .\n"; sparql+= "?metric i:hasvalue ?value \n"; sparql+="}\n";
by executing exception:
a first chance exception of type 'system.net.webexception' occurred in system.dll exception when sending query: prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix i: <http://evolizer.org/ontologies/seon/2010/09/softwaremetrics.owl#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> select ?metric ?value { ?metric rdf:type i:softwaredesignmetric . ?metric i:hasname mccabe . ?metric i:hasvalue ?value }
the problem has query itself, because other queries same server working.
all of examples here place string arguments (such mccabe in example) in quotes. it?
Comments
Post a Comment