Mercurial > hg > semantic-sia
comparison src/sparql/insert_siatec_vector_table_bnodes.sparql @ 56:fa1ca32c6a17
new
author | stevenh |
---|---|
date | Tue, 02 Apr 2013 23:10:42 +0100 |
parents | |
children | 7cdbe9fdc1bb |
comparison
equal
deleted
inserted
replaced
55:5be8173a2b95 | 56:fa1ca32c6a17 |
---|---|
1 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
2 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
3 PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
4 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
5 PREFIX abc: <http://example.org/abc#> | |
6 PREFIX seq: <http://example.org/seq#> | |
7 PREFIX sia: <http://example.org/sia#> | |
8 | |
9 INSERT { _:vte rdf:type sia:VectorTableElement; | |
10 sia:fromDatapoint ?datapoint1; | |
11 sia:toDatapoint ?datapoint2} | |
12 WHERE | |
13 { | |
14 ?datapoint1 sia:memberOfOrderedSet ?bnode . | |
15 ?datapoint2 sia:memberOfOrderedSet ?bnode . | |
16 ?bnode a sia:OrderedSet . | |
17 ?datapoint1 sia:orderedIndex ?i1 . | |
18 ?datapoint2 sia:orderedIndex ?i2 | |
19 } | |
20 #GROUP BY ?datapoint1 ?datapoint2 |