Reputation: 43
I am trying to delete some triples using this query but it gives me following error
this line is invalid
I don't get what I am doing wrong. Can anyone help me?
DELETE DATA{
GRAPH <http://vitali.web.cs.unibo.it/raschietto/graph/ltw1536>
{ [ a oa:Annotation;
rdfs:label "Author"^^<http://www.w3.org/2001/XMLSchema#string> ;
vurp:type "hasAuthor"^^<http://www.w3.org/2001/XMLSchema#normalizedString> ;
oa:AnnotatedAt "2015-8-26T10:1:25"^^<http://www.w3.org/2001/XMLSchema#dateTime>;
oa:AnnotatedBy <ccc>;
oa:hasBody [ a rdf:Statement;
rdf:object [ a <http://xmlns.com/foaf/0.1/Person> ;
rdf:subject <http://vitali.web.cs.unibo.it/raschietto/person/s-undefinedstocazzo> ;
rdfs:label "stocazzo"^^<http://www.w3.org/2001/XMLSchema#string>
];
rdf:predicate <http://purl.org/dc/terms/creator> ;
rdf:subject <http://www.dlib.org/dlib/november14/knoth/11knoth.html> ;
rdfs:label "An author of the document is stocazzo"^^<http://www.w3.org/2001/XMLSchema#string>
] ;
oa:hasTarget [ a oa:SpecificResource;
oa:hasSelector [a oa:FragmentSelector;
rdf:value "form1_table3_tbody1_tr1_td1_table5_tbody1_tr1_td1_table1_tbody1_tr1_td2_p4"^^<http://www.w3.org/2001/XMLSchema#normalizedString>;
oa:end "91"^^<xsd:nonNegativeInteger>;
oa:start "77"^^<xsd:nonNegativeInteger>
];
oa:hasSource <http://www.dlib.org/dlib/november14/knoth/11knoth.html>;
]
].
}
}
Upvotes: 0
Views: 511
Reputation: 85883
I don't know what the specific error you're getting it, but if you paste your query into the validator at sparql.org, there's at least one problem that is surely significant, and could be your issue:
Line 10, column 15: Blank nodes not allowed in DELETE templates
Upvotes: 3