Hi all,
I am using jena-fuseki-0.2.4 with TDB.
I ran the following INSERT query:
INSERT DATA {
<http://example.org#Sub> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
http://example.org#Model>.
<http://example.org#Sub> <http://example.org#hasProperty0> _:a0.
_:a0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
http://example.org#Context>.
_:a0 <http://example.org#hasProperty1> _:a1.
_:a1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
http://example.org#Surface>.
_:a1 <http://example.org#hasProperty2> <http://example.org#Flat>.
}
and confirmed that these 6 triples were inserted.
I now want to delete all triples associated with the subject,
http://example.org#Sub.
I ran the following DELETE query:
DELETE { <http://example.org#Sub> ?p ?o. } WHERE { <http://example.org#Sub>
?p ?o. }
These 2 triples:
<http://example.org#Sub> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
http://example.org#Model>.
<http://example.org#Sub> <http://example.org#hasProperty0> _:a0.
have been removed, but the blank nodes still exist in TDB.
Is there a way to construct a DELETE query to remove all blank nodes
associated with the subject, http://example.org#Sub, regardless of the
length of the path from http://example.org#Sub to the blank nodes?
Thank you for your help.
Best,
Nga