Skip to content

Redundant triples in CONSTRUCT output? #521

Answered by enridaga
rybesh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rybesh -- welcome!

We assume triples produced by SA to be distinct because of how the CONSTRUCT operator works -- we are using Jena as-is for that. In your example, the triples are all referring to different blank nodes:

 geo:hasGeometry [ geo:asWKT ?wkt ] ;

The CONSTRUCT operator will generate a new BNode for each match. One way to solve this problem is to change your query and skolemise the blank noe (use a URI instead) and make sure it is generated using relrevant keys (for example, the string POINT(1.144602 41.115171))

FYI, SPARQL Anything has a shortcut to build entity URIs (see also discussion here #106): fx:entity.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rybesh
Comment options

Answer selected by rybesh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants