diff --git a/config.properties b/config.properties
new file mode 100644
index 0000000..cd4966d
--- /dev/null
+++ b/config.properties
@@ -0,0 +1,8 @@
+# Currently only postgres is supported
+database.driverClass=org.postgresql.Driver
+
+# Format: jdbc:postgresql://{hostname}/{dbame}
+database.jdbcUrl=jdbc:postgresql://localhost/osm
+database.username=postgres
+database.password=postgres
+
diff --git a/linkedgeodata-core/pom.xml b/linkedgeodata-core/pom.xml
index 465f2fe..f5aaabf 100644
--- a/linkedgeodata-core/pom.xml
+++ b/linkedgeodata-core/pom.xml
@@ -1,388 +1,36 @@
+
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- org.linkedgeodata
- lgd3
- 0.0.1-SNAPSHOT
- LinkedGeoData
- LinkedGeoData.org - Adding a spatial dimension to the Web of Data.
-
-
-
- org.mortbay.jetty
- jetty-maven-plugin
-
-
-
- jetty.port
- 8080
-
-
- manual
-
-
+ sparqlify-core
+ jar
-
- org.codehaus.groovy.maven
- gmaven-plugin
- 1.0
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
- false
-
-
-
- maven-assembly-plugin
-
-
- jar-with-dependencies
-
-
-
+ LinkedGeoData - Core
+
+ http://aksw.org/Projects/LinkedGeoData
+
+ org.aksw.linkedgeodata
+ linkedgeodata-parent
+ 0.4-SNAPSHOT
+
-
+
- org.mortbay.jetty
- jetty
- 7.0.0.pre5
- jar
- compile
-
-
-
- com.sun.jersey
- jersey-core
- 1.8
+ org.aksw.sparqlify
+ sparqlify-core
- com.sun.jersey
- jersey-server
- 1.8
-
-
-
- org.mod4j.org.apache.commons
- cli
- 1.0.0
- jar
- compile
-
-
-
-
-
- com.google.code.gson
+ com.google.code.gson
gson
- 1.7.1
- compile
-
-
-
- org.aksw.commons
- sparql-scala
- 0.2-SNAPSHOT
- compile
-
-
- org.aksw.commons
- util
- 0.2-SNAPSHOT
- compile
-
-
- org.aksw.commons
- sparql
- 0.2-SNAPSHOT
- compile
-
-
- org.aksw.commons
- model
- 0.2-SNAPSHOT
- compile
-
-
- org.aksw.commons
- collections
- 0.2-SNAPSHOT
- compile
-
-
-
- commons-validator
- commons-validator
- 1.3.1
-
-
-
- com.jamonapi
- jamon
- 2.4
- jar
- compile
-
-
- net.sourceforge.secondstring
- secondstring
- 20060615
-
-
-
- log4j
- log4j
- 1.2.14
- jar
- compile
-
-
- org.mod4j.org.apache.commons
- cli
- 1.0.0
- jar
- compile
-
-
- net.sourceforge.collections
- collections-generic
- 4.01
- jar
- compile
-
-
- org.ini4j
- ini4j
- 0.5.1
- jar
- compile
-
-
- javax.mail
- mail
- 1.4.1
- jar
- compile
-
-
- org.codehaus.groovy
- groovy
- 1.7.2
- jar
- compile
-
-
- postgresql
- postgresql
- 8.4-701.jdbc4
- jar
- compile
-
-
- org.postgis
- postgis-jdbc
- 1.3.3
- jar
- compile
-
-
- commons-compress
- commons-compress
- 20050911
- jar
- compile
-
-
-
-
- com.google.gwt
- gwt-servlet
- ${gwt.version}
- compile
-
-
- com.google.gwt
- gwt-user
- ${gwt.version}
- provided
-
-
-
-
- com.openlink.virtuoso
- virtjdbc4
- 6.1.2
-
-
- com.openlink.virtuoso
- virt_jena
- 6.1.2
-
-
-
-
- org.openstreetmap
- osmosis
- 0.34
-
-
-
-
-
-
-
-
-
- org.hibernate
- hibernate-annotations
- 3.5.1-Final
- jar
- compile
-
-
- org.hibernate
- hibernate-core
- 3.5.1-Final
- jar
- compile
-
-
- javassist
- javassist
- 3.4.GA
-
-
- org.slf4j
- slf4j-api
- 1.6.0
- jar
- compile
-
-
- org.slf4j
- slf4j-log4j12
- 1.6.0
- jar
- compile
-
-
- commons-collections
- commons-collections
- 3.2.1
-
-
-
- org.hsqldb
- hsqldb
- 2.0.0
- jar
- compile
-
-
- com.thoughtworks.xstream
- xstream
- 1.3.1
- jar
- compile
-
-
- org.apache.derby
- derby
- 10.6.1.0
- jar
- compile
-
-
-
-
- com.hp.hpl.jena
- arq
- 2.8.7
- jar
- compile
-
-
- com.hp.hpl.jena
- arq-extra
- 2.7.0
- jar
- compile
-
-
- com.hp.hpl.jena
- jena
- 2.6.4
- jar
- compile
-
-
- com.hp.hpl.jena
- sdb
- 1.3.4
- jar
- compile
-
-
- com.hp.hpl.jena
- tdb
- 0.8.9
- jar
- compile
-
-
- com.google.guava
- guava
- r09
- jar
- compile
-
- 1.6
- 1.6
-
- 2.0.4
-
-
-
- 1.6
- http://java.sun.com/javase/6/docs/api/
- UTF-8
- UTF-8
- UTF-8
-
- 2.5.6
-
diff --git a/linkedgeodata-core/src/main/resources/LinkedGeoData-Triplify-IndividualViews.sparqlify b/linkedgeodata-core/src/main/resources/LinkedGeoData-Triplify-IndividualViews.sparqlify
new file mode 100644
index 0000000..ee0a6c4
--- /dev/null
+++ b/linkedgeodata-core/src/main/resources/LinkedGeoData-Triplify-IndividualViews.sparqlify
@@ -0,0 +1,682 @@
+/**
+ * Sparqlify configuration file for LinkedGeoData
+ *
+ * Triplify flavour
+ *
+ */
+
+// Prefixes (these will also be used in the query responses)
+Prefix spy:
+Prefix ogc:
+
+#Prefix dc:
+Prefix dcterms:
+Prefix xsd:
+Prefix rdf:
+Prefix rdfs:
+Prefix owl:
+
+
+Prefix lgd:
+Prefix lgd-geom:
+Prefix lgdo:
+Prefix lgdm:
+
+//Prefix geo:
+
+Prefix wgs:
+
+
+Prefix spatial:
+Prefix geom:
+
+//Prefix virtrdf:
+
+
+/**********
+ * Ontology
+ **********/
+
+
+Create View classes_k As
+ Construct {
+ ?s a owl:Class .
+ ?s lgdm:sourceKey ?k .
+ }
+ With
+ ?s = uri(?object)
+ ?k = plainLiteral(?k)
+ Constrain
+ ?s prefix "http://linkedgeodata.org/ontology/"
+ From
+ [[SELECT object, k FROM lgd_map_resource_k WHERE property = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type']];
+
+Create View sub_classes As
+ Construct {
+ ?child rdfs:subClassOf ?parent .
+ }
+ With
+ ?child = uri(?child)
+ ?parent = uri(?parent)
+ Constrain
+ ?child prefix "http://linkedgeodata.org/ontology/"
+ ?parent prefix "http://linkedgeodata.org/ontology/"
+ From
+ [[SELECT a.object AS parent, b.object AS child FROM lgd_map_resource_k a JOIN lgd_map_resource_kv b ON (b.k = a.k) WHERE a.property = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' AND b.property = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' AND a.object != b.object]];
+
+
+Create View classes_kv As
+ Construct {
+ ?s a owl:Class .
+ ?s lgdm:sourceTag ?t .
+ ?t lgdm:key ?k .
+ ?t lgdm:value ?v .
+ }
+ With
+ ?s = uri(?object)
+ ?t = uri(concat(?object, "/key/", ?k, "/value/", ?v))
+ ?k = plainLiteral(?k)
+ ?v = plainLiteral(?v)
+ Constrain
+ ?s prefix "http://linkedgeodata.org/ontology/"
+ ?t prefix "http://linkedgeodata.org/ontology/"
+ From
+ [[SELECT object, k, v FROM lgd_map_resource_kv WHERE property = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type']];
+
+
+
+// Resource labels
+Create View view_resource_labels As
+ Construct {
+ ?s rdfs:label ?o .
+ }
+ With
+ ?s = uri(?resource)
+ ?o = plainLiteral(?label, ?language)
+ Constrain
+ ?s prefix "http://linkedgeodata.org/ontology/"
+ From
+ lgd_resource_label;
+
+
+
+/*************
+ * Nodes
+ *************/
+
+
+// Node geometries
+Create View lgd_nodes As
+ Construct {
+ ?n a lgdm:Node .
+ ?n a spatial:Feature .
+ ?n lgdo:version ?v .
+ ?n dcterms:contributor ?u .
+ ?n dcterms:modified ?d .
+ ?n lgdo:changeset ?c .
+ ?n geom:geometry ?g .
+
+ ?g a geom:Geometry .
+ ?g ogc:asWKT ?o .
+
+ ?n wgs:long ?xx .
+ ?n wgs:lat ?yy .
+
+ ?n owl:sameAs ?gadm .
+ }
+ With
+ ?n = uri(concat(lgd:node, ?id))
+ ?v = typedLiteral(?version, xsd:int)
+ ?u = uri(concat(lgdo:user, ?user_id))
+ ?d = typedLiteral(?tstamp, xsd:dateTime)
+ ?c = typedLiteral(?changeset_id, xsd:int)
+ ?g = uri(concat(lgd-geom:node, ?id))
+ ?o = typedLiteral(?geom, ogc:WKTLiteral)
+ //?g = typedLiteral(?geom, virtrdf:geometry)
+ ?xx = typedLiteral(?x, xsd:double)
+ ?yy = typedLiteral(?y, xsd:double)
+
+ ?gadm = uri(concat("http://gadm.geovocab.org/services/withinRegion?lat=", ?y_text , "&long=", ?x_text, "#point"))
+
+ From
+ [[SELECT *, ST_X(geom::geometry) x, ST_Y(geom::geometry) y, ST_X(geom::geometry)::float4::text x_text, ST_Y(geom::geometry)::float4::text y_text FROM nodes]];
+
+
+/*
+Create view lgd_sameAs_gadm As
+ Construct {
+ ?n owl:sameAs ?gadm .
+ }
+ With
+ ?n = uri(concat(lgd:node, ?id))
+ ?gadm = uri(concat("http://gadm.geovocab.org/services/withinRegion?lat=", ?y , "&long=", ?x, "#point"))
+ From
+ [[SELECT id, ST_X(geom::geometry)::float4::text x, ST_Y(geom::geometry)::float4::text y FROM nodes]];
+
+
+Create View lgd_node_geometries As
+ Construct {
+ ?n a geom:Geometry .
+ ?n ogc:asWKT ?o .
+ }
+ With
+ ?n = uri(concat(lgd-geom:node, ?id))
+ ?o = typedLiteral(?geom, ogc:WKTLiteral)
+ From
+ nodes;
+*/
+
+Create View lgd_node_tags_resource_k As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:node, ?node_id))
+ ?p = uri(?property)
+ ?o = uri(?object)
+ Constrain
+ ?p prefix "http://linkedgeodata.org/ontology/" "http://www.w3.org/"
+ ?o prefix "http://linkedgeodata.org/ontology/"
+ From
+ lgd_node_tags_resource_k
+
+
+Create View lgd_node_tags_resource_kv As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:node, ?node_id))
+ ?p = uri(?property)
+ ?o = uri(?object)
+ Constrain
+ ?p prefix "http://linkedgeodata.org/ontology/" "http://www.w3.org/"
+ ?o prefix "http://linkedgeodata.org/ontology/"
+ From
+ lgd_node_tags_resource_kv
+
+Create View lgd_node_tags_boolean As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:node, ?node_id))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', ?k))
+ ?o = typedLiteral(?v, xsd:boolean)
+ From
+ lgd_node_tags_boolean
+
+Create View lgd_node_tags_int As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:node, ?node_id))
+ //?p = uri(concat('http://linkedgeodata.org/ontology/', spy:urlEncode(?k)))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', ?k))
+ ?o = typedLiteral(?v, xsd:int)
+ From
+ lgd_node_tags_int
+
+Create View lgd_node_tags_float As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:node, ?node_id))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', ?k))
+ ?o = typedLiteral(?v, xsd:float)
+ From
+ lgd_node_tags_float
+
+
+Create View lgd_node_tags_text As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:node, ?node_id))
+ ?p = uri(?property)
+ ?o = plainLiteral(?v, ?language)
+ Constrain
+ ?p prefix "http://linkedgeodata.org/ontology/" "http://www.w3.org/" "http://xmlns.com/foaf/0.1/"
+ From
+ lgd_node_tags_text
+
+Create View lgd_node_tags_string As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:node, ?node_id))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', spy:urlEncode(?k)))
+ ?o = plainLiteral(?v)
+ From
+ lgd_node_tags_string
+
+
+
+/*************
+ * Ways
+ *************/
+
+Create View lgd_ways As
+ Construct {
+ ?w a lgdm:Way .
+ ?w a spatial:Feature .
+ ?w lgdo:version ?v .
+ ?w dcterms:contributor ?u .
+ ?w dcterms:modified ?d .
+ ?w lgdo:changeset ?c .
+ ?w geom:geometry ?g .
+ }
+ With
+ ?w = uri(concat(lgd:way, ?id))
+ ?v = typedLiteral(?version, xsd:int)
+ ?u = uri(concat(lgdo:user, ?user_id))
+ ?d = typedLiteral(?tstamp, xsd:dateTime)
+ ?c = typedLiteral(?changeset_id, xsd:int)
+ //?g = typedLiteral(?geom, virtrdf:geometry)
+ ?g = uri(concat(lgd-geom:way, ?id))
+ From
+ ways;
+
+Create View lgd_ways_linestrings As
+ Construct {
+ ?w a geom:Geometry .
+ ?w ogc:asWKT ?g .
+ }
+ With
+ //?w = uri(concat(lgd:way, ?id))
+ ?w = uri(concat(lgd-geom:way, ?id))
+ ?g = typedLiteral(?linestring, ogc:WKTLiteral)
+ From
+ [[SELECT id, linestring FROM ways a WHERE a.id NOT IN (SELECT way_id FROM simple_polys)]];
+
+
+Create View ways_polygons As
+ Construct {
+ ?w a geom:Geometry .
+ ?w ogc:asWKT ?g .
+ }
+ With
+ //?w = uri(concat(lgd:way, ?way_id))
+ ?w = uri(concat(lgd-geom:way, ?way_id))
+ ?g = typedLiteral(?polygon, ogc:WKTLiteral)
+ From
+ simple_polys;
+
+
+
+/*
+Create View view_way_to_nodes As
+ Construct {
+ ?w lgdo:hasNodes ?wn .
+ }
+ With
+ ?w = uri(concat(lgd:way, ?id))
+ ?wn = uri(concat(lgd:waynode, ?id))
+ From
+ ways;
+*/
+
+
+Create View lgd_pos_seq As
+ Construct {
+ ?w lgdo:posSeq ?wn .
+ }
+ With
+ ?w = uri(concat(lgd-geom:way, ?id))
+ ?wn = uri(concat(lgd-geom:posSeq, ?id))
+ From
+ ways;
+
+Create View lgd_pos_seq_type As
+ Construct {
+ ?wn a rdf:Seq .
+ }
+ With
+ ?wn = uri(concat(lgd-geom:posSeq, ?id))
+ From
+ ways;
+
+
+Create View view_waynodes As
+ Construct {
+ ?wn ?p ?n .
+ }
+ With
+ ?wn = uri(concat(lgd-geom:posSeq, ?way_id))
+ ?p = uri(concat(rdf:_, ?sequence_id))
+ ?n = uri(concat(lgd-geom:node, ?node_id))
+ From
+ way_nodes;
+
+
+Create View lgd_way_tags_resource_k As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:way, ?way_id))
+ ?p = uri(?property)
+ ?o = uri(?object)
+ Constrain
+ ?p prefix "http://linkedgeodata.org/ontology/" "http://www.w3.org/"
+ ?o prefix "http://linkedgeodata.org/ontology/"
+ From
+ lgd_way_tags_resource_k
+
+Create View lgd_way_tags_resource_kv As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:way, ?way_id))
+ ?p = uri(?property)
+ ?o = uri(?object)
+ Constrain
+ ?p prefix "http://linkedgeodata.org/ontology/" "http://www.w3.org/"
+ ?o prefix "http://linkedgeodata.org/ontology/"
+ From
+ lgd_way_tags_resource_kv
+
+Create View lgd_way_tags_boolean As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:way, ?way_id))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', ?k))
+ ?o = typedLiteral(?v, xsd:boolean)
+ From
+ lgd_way_tags_boolean
+
+Create View lgd_way_tags_int As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:way, ?way_id))
+ //?p = uri(concat('http://linkedgeodata.org/ontology/', spy:urlEncode(?k)))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', ?k))
+ ?o = typedLiteral(?v, xsd:int)
+ From
+ lgd_way_tags_int
+
+Create View lgd_way_tags_float As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:way, ?way_id))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', ?k))
+ ?o = typedLiteral(?v, xsd:float)
+ From
+ lgd_way_tags_float
+
+Create View lgd_way_tags_text As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:way, ?way_id))
+ ?p = uri(?property)
+ ?o = plainLiteral(?v, ?language)
+ Constrain
+ ?p prefix "http://linkedgeodata.org/ontology/" "http://www.w3.org/" "http://xmlns.com/foaf/0.1/"
+ From
+ lgd_way_tags_text
+
+Create View lgd_way_tags_string As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:way, ?way_id))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', spy:urlEncode(?k)))
+ ?o = plainLiteral(?v)
+ From
+ lgd_way_tags_string
+
+
+
+/*********
+ * RELATIONS
+ *********/
+
+Create View lgd_relations As
+ Construct {
+ ?s a lgdm:Relation .
+ ?s a spatial:Feature .
+ ?s lgdo:version ?v .
+ ?s dcterms:contributor ?u .
+ ?s dcterms:modified ?d .
+ ?s lgdo:changeset ?c .
+ //?w geom:geometry ?g .
+
+ ?s lgdo:members ?m .
+ ?m a rdf:Seq .
+
+ }
+ With
+ ?s = uri(concat(lgd:relation, ?id))
+ ?v = typedLiteral(?version, xsd:int)
+ ?u = uri(concat(lgdo:user, ?user_id))
+ ?d = typedLiteral(?tstamp, xsd:dateTime)
+ ?c = typedLiteral(?changeset_id, xsd:int)
+ //?g = uri(concat(lgd-geom:relation, ?id))
+
+ ?m = uri(concat(lgd:relation, ?id, "/members"))
+
+ From
+ [[SELECT id, version, user_id, tstamp, changeset_id FROM relations]];
+
+
+Create View lgd_relation_members_seq_nodes As
+ Construct {
+ ?m ?p ?i .
+ ?i lgdo:role ?r .
+ ?i lgdo:ref ?n
+ }
+ With
+ ?m = uri(concat(lgd:relation, ?relation_id, "/members"))
+ ?p = uri(concat(rdf:_, ?sequence_id))
+ ?i = uri(concat(lgd:relation, ?relation_id, "/member", ?sequence_id))
+ ?r = plainLiteral(?member_role)
+ ?n = uri(concat(lgd:node, ?member_id))
+ From
+ [[SELECT * FROM relation_members WHERE member_type = 'N']];
+
+Create View lgd_relation_members_seq_ways As
+ Construct {
+ ?m ?p ?i .
+ ?i lgdo:role ?r .
+ ?i lgdo:ref ?n
+ }
+ With
+ ?m = uri(concat(lgd:relation, ?relation_id, "/members"))
+ ?p = uri(concat(rdf:_, ?sequence_id))
+ ?i = uri(concat(lgd:relation, ?relation_id, "/member", ?sequence_id))
+ ?r = plainLiteral(?member_role)
+ ?n = uri(concat(lgd:way, ?member_id))
+ From
+ [[SELECT * FROM relation_members WHERE member_type = 'W']];
+
+
+Create View lgd_relation_members_seq_relations As
+ Construct {
+ ?m ?p ?i .
+ ?i lgdo:role ?r .
+ ?i lgdo:ref ?n
+ }
+ With
+ ?m = uri(concat(lgd:relation, ?relation_id, "/members"))
+ ?p = uri(concat(rdf:_, ?sequence_id))
+ ?i = uri(concat(lgd:relation, ?relation_id, "/member", ?sequence_id))
+ ?r = plainLiteral(?member_role)
+ ?n = uri(concat(lgd:relation, ?member_id))
+ From
+ [[SELECT * FROM relation_members WHERE member_type = 'R']];
+
+
+/*
+Create View relation_members_nodes As
+ Construct {
+ ?s lgdo:hasMember ?o .
+ }
+ With
+ ?s = uri(concat(lgd:relation, ?relation_id))
+ ?o = uri(concat(lgd:node, ?member_id))
+ From
+ [[SELECT relation_id, member_id FROM relation_members WHERE member_type = 'N']];
+*/
+
+
+
+
+
+Create View lgd_relation_tags_resource_k As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:relation, ?relation_id))
+ ?p = uri(?property)
+ ?o = uri(?object)
+ Constrain
+ ?p prefix "http://linkedgeodata.org/ontology/" "http://www.w3.org/"
+ ?o prefix "http://linkedgeodata.org/ontology/"
+ From
+ lgd_relation_tags_resource_k
+
+Create View lgd_relation_tags_resource_kv As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:relation, ?relation_id))
+ ?p = uri(?property)
+ ?o = uri(?object)
+ Constrain
+ ?p prefix "http://linkedgeodata.org/ontology/" "http://www.w3.org/"
+ ?o prefix "http://linkedgeodata.org/ontology/"
+ From
+ lgd_relation_tags_resource_kv
+
+Create View lgd_relation_tags_boolean As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:relation, ?relation_id))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', ?k))
+ ?o = typedLiteral(?v, xsd:boolean)
+ From
+ lgd_relation_tags_boolean
+
+Create View lgd_relation_tags_int As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:relation, ?relation_id))
+ //?p = uri(concat('http://linkedgeodata.org/ontology/', spy:urlEncode(?k)))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', ?k))
+ ?o = typedLiteral(?v, xsd:int)
+ From
+ lgd_relation_tags_int
+
+Create View lgd_relation_tags_float As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:relation, ?relation_id))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', ?k))
+ ?o = typedLiteral(?v, xsd:float)
+ From
+ lgd_relation_tags_float
+
+Create View lgd_relation_tags_text As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:way, ?relation_id))
+ ?p = uri(?property)
+ ?o = plainLiteral(?v, ?language)
+ Constrain
+ ?p prefix "http://linkedgeodata.org/ontology/" "http://www.w3.org/" "http://xmlns.com/foaf/0.1/"
+ From
+ lgd_relation_tags_text
+
+Create View lgd_relation_tags_string As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:relation, ?relation_id))
+ ?p = uri(concat('http://linkedgeodata.org/ontology/', spy:urlEncode(?k)))
+ ?o = plainLiteral(?v)
+ From
+ lgd_relation_tags_string
+
+
+
+/*
+
+// Classes and object properties (generic)
+Create View view_prefixed_properties As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:node, ?node_id))
+ ?p = uri(?property)
+ ?o = uri(?object)
+ From
+ node_generic_resources;
+
+
+
+
+// Object Properties with prefix
+// The prefix datatype causes troubles
+Create View view_prefixed_properties As
+ Construct {
+ ?s ?p ?o .
+ }
+ With
+ ?s = uri(concat(lgd:node, ?node_id))
+ ?p = uri(?property)
+ ?o = uri(concat(?object_prefix, ?v))
+ From
+ lgd_node_tags_prefix;
+
+*/
+
+
+
+/**
+ * Copyright (C) 2009-2012, LinkedGeoData team at the MOLE research
+ * group at AKSW / University of Leipzig
+ *
+ * This file is part of LinkedGeoData.
+ *
+ * LinkedGeoData is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * LinkedGeoData is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..0b92054
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,110 @@
+
+ 4.0.0
+ org.aksw.linkedgeodata
+ linkedgeodata-parent
+ 0.4-SNAPSHOT
+ linkedgeodata parent
+ LinkedGeoData.org - Adding a spatial dimension to the Web of Data.
+ pom
+
+
+ linkedgeodata-core
+
+
+
+ 1.6
+ 1.6
+
+
+ 1.6
+ http://java.sun.com/javase/6/docs/api/
+ UTF-8
+ UTF-8
+ UTF-8
+
+
+ 1.8
+ 3.1.2.RELEASE
+ 0.5-SNAPSHOT
+
+
+
+
+
+ org.mortbay.jetty
+ jetty-maven-plugin
+ 8.1.6.v20120903
+
+
+
+ jetty.port
+ 8080
+
+
+ manual
+
+
+
+
+ org.codehaus.groovy.maven
+ gmaven-plugin
+ 1.0
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.12.3
+
+ false
+
+
+
+ maven-assembly-plugin
+
+
+ jar-with-dependencies
+
+
+
+
+
+
+
+
+
+ maven.aksw.org.internal
+ University Leipzig, AKSW Maven Internal Repository
+ http://maven.aksw.org/repository/internal
+
+
+ maven.aksw.org.snapshot
+ University Leipzig, AKSW Maven Snapshot Repository
+ http://maven.aksw.org/repository/snapshots
+
+
+
+
+
+
+ org.aksw.sparqlify
+ sparqlify-core
+ 0.2-SNAPSHOT
+ jar
+ compile
+
+
+
+
+ com.google.code.gson
+ gson
+ 2.2.2
+ compile
+
+
+
+
+
+