Calculate length of path between nodes?

This is based on the same technique used to compute the position of an element in an RDF list using SPARQL that is described in: Is it possible to get the position of an element in an RDF Collection in SPARQL? If you have data like this: @prefix : <http://example.org> . :orgA :hasSuborganization :orgB, :orgC, … Read more

Aggregating results from SPARQL query

You can GROUP BY by the variables that identify the tweet and then use GROUP_CONCAT to concatenate the hashtags into something like an array, but it will still be a string that you’ll need to parse afterward. For instance, given data like @prefix smo: <http://example.org/> . @prefix : <http://example.org/> . :tweet1 smo:tweeted_at “1” ; smo:has_hashtag … Read more