Looking to use TB 7.8 sparql endpoint to construct a ttl file from .tch for inserting into another .tch file for a different environment (ex. dev to test).
I am able to build an satisfactory CONSTRUCT query, and get the data I need. However, in the data are duplicate blank node triples:
<urn:x-change:2024-10-02T19-47-36.847Zm149843-17f82ce1-07a8-427d-8492-10a87eb28814>
rdf:type teamwork:Change;
rdfs:comment "Created Article \"test\"";
dcterms:created "2024-10-02T19:47:36.847Z"^^xsd:dateTime;
sioc:has_creator <urn:x-tb-users:xxxxx>;
teamwork:added [] ;
teamwork:added [ teamwork:object <#Article>;
teamwork:predicate rdf:type;
teamwork:subject <#test>
];
teamwork:added [ teamwork:object <#Article>;
teamwork:predicate rdf:type;
teamwork:subject <#test>
];
teamwork:added [ teamwork:object <#Article>;
teamwork:predicate rdf:type;
teamwork:subject <#test>
];
teamwork:added [ teamwork:object <#Article>;
teamwork:predicate rdf:type;
teamwork:subject <#test>
];
etc.
Other than the duplicates, the remainder ttl is exactly what I need for an INSERT DATA query.
Construct query:
CONSTRUCT { ?s ?a ?o .
?s teamwork:tag <urn:x-tags:xxx> .
?s ?p [ teamwork:object ?y ;
teamwork:predicate ?b ;
teamwork:subject ?d ] . }
WHERE {
?s teamwork:tag <urn:x-tags:xxx> .
?s ?a ?o .
?s ?p [teamwork:object ?y ;
teamwork:predicate ?b ;
teamwork:subject ?d] .
}