Dear Wiki user, You have subscribed to a wiki page or wiki category on "Marmotta Wiki" for change notification.
The "MARMOTTA-584/DeveloperDocumentation" page has been changed by Francisco Sumba: https://wiki.apache.org/marmotta/MARMOTTA-584/DeveloperDocumentation?action=diff&rev1=1&rev2=2 = Developer Documentation = + For MARMOTTA-584 project, the GeoSPARQL support is implemented for Kiwi Triplestore. + + + + + '''KIWI TRIPLESTORE''' + + The KiWi triple store is a high performance transactional triple store backend for OpenRDF Sesame building on top of a relational database (currently H2, PostgreSQL, or MySQL). + For more information please review [[http://marmotta.apache.org/kiwi/index.html]] + + Just as described on the website of kiwi, kiwi is composed of several modules: + + * kiwi-triplestore + * kiwi-transactions + * kiwi-tripletable + * kiwi-sparql + * kiwi-contextaware + * kiwi-reasoner + * kiwi-versioning + + + [[http://marmotta.apache.org/kiwi/triplestore.html | kiwi-triplestore ]] is the core of Kiwi TripleStore, in this module the [[https://github.com/cuent/marmotta/blob/MARMOTTA-584/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiValueFactory.java | KiwiValueFactory ]] class was modified to allow storing the geometry literal type from the RDF, in a geometry column of postgres db (Postgis). In the same way to retrieve the geometry literal. + + To achieve this goal it was necessary to create [[https://github.com/cuent/marmotta/blob/MARMOTTA-584/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiGeometryLiteral.java | GeometryKiwiLiteral ]]. This class lets you create geometry type literals. + + Moreover, in the STORENODE function of [[https://github.com/cuent/marmotta/blob/MARMOTTA-584/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiConnection.java | kiwiConnection ]] class, the "node instanceof KiWiGeometryLiteral" conficion was added to filter geometry type literals and insert them into the database with "store.gliteral" statement from [[https://github.com/cuent/marmotta/blob/MARMOTTA-584/libraries/kiwi/kiwi-triplestore/src/main/resources/org/apache/marmotta/kiwi/persistence/pgsql/statements.properties | "statements.properties" ]] file. The "statements.properties" was upgrade to add the new "store.gliteral" statement that allows you to insert the new geometry literal. + + +
