Mercurial > hg > semantic-sia
changeset 32:e54146082eaf
new
author | stevenh |
---|---|
date | Tue, 08 Jan 2013 18:52:19 +0000 |
parents | c572e86fb2fc |
children | bbc5f4a4ec8b |
files | src/sparql/construct_siatec_vector_table_bnodes.sparql |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/sparql/construct_siatec_vector_table_bnodes.sparql Tue Jan 08 18:52:19 2013 +0000 @@ -0,0 +1,20 @@ +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX owl: <http://www.w3.org/2002/07/owl#> +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> +PREFIX abc: <http://example.org/abc#> +PREFIX seq: <http://example.org/seq#> +PREFIX sia: <http://example.org/sia#> + +CONSTRUCT { _:vte rdf:type sia:VectorTableElement; + sia:fromDatapoint ?datapoint1; + sia:toDatapoint ?datapoint2} +WHERE +{ + ?datapoint1 sia:memberOfOrderedSet ?bnode . + ?datapoint2 sia:memberOfOrderedSet ?bnode . + ?bnode a sia:OrderedSet . + ?datapoint1 sia:orderedIndex ?i1 . + ?datapoint2 sia:orderedIndex ?i2 +} +GROUP BY ?datapoint1 ?datapoint2