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=9&rev2=10 '''[[http://marmotta.apache.org/kiwi/triplestore.html | kiwi-triplestore ]] Module ''' - This is the core of Kiwi TripleStore, in this module the function createLiteral(...) within 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 the storing of GEOMETRY Literal Type from the RDF, in a geometry column of Postgres DB using Postgis Extension. In the same way to retrieve the geometry literal. + This is the core of Kiwi TripleStore, in this module the function createLiteral(...) within 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 the storing of GEOMETRY Literal obtained from the RDF data in a geometry column of Postgres DB using Postgis Extension. In the same way to retrieve the geometry literal from Postgres DB. - To achieve this goal it was necessary to create the class [[https://github.com/cuent/marmotta/blob/MARMOTTA-584/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiGeometryLiteral.java | KiwiGeometryLiteral ]]. This class allows you to create geometry type literals. + To achieve this goal it was necessary to create the class [[https://github.com/cuent/marmotta/blob/MARMOTTA-584/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiGeometryLiteral.java | KiwiGeometryLiteral ]]. This class allows you to create GEOMETRY Literals. - The following figure is a code fragment of the "createLiteral(...)" to create a new Geometry Type Literal. + The following figure is a fragment of code corresponding to the createLiteral(...) function. {{attachment:kiwiValueFactory.PNG}} - 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. Moreover, The WKT are extracted from wktLiteral. + 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" condition was added to filter GEOMETRY 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 upgraded to add the new "store.gliteral" statement. Moreover, The WKT are extracted from wktLiteral. In the following figure fragment of storenode(...) function when node is instanceof KiWiGeometryLiteral is presented.
