changeset 10:0775168f1a51

renamed previous file 'construct_vector_table_bnodes.sparql'
author stevenh
date Wed, 02 Jan 2013 15:11:43 +0000
parents 3dc7ce380afe
children 3f34e6a5e620
files src/sparql/construct_sia_vector_table_bnodes.sparql
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/sparql/construct_sia_vector_table_bnodes.sparql	Wed Jan 02 15:11:43 2013 +0000
@@ -0,0 +1,21 @@
+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
+	FILTER ((?datapoint1 != ?datapoint2) && (?i1 < ?i2))
+}
+GROUP BY ?datapoint1 ?datapoint2