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=3&rev2=4

  
  '''IN [[http://marmotta.apache.org/kiwi/triplestore.html | kiwi-triplestore 
]] module '''
  
- This 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. 
+ This 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 in createLiteral(...) function 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
 | KiwiGeometryLiteral ]]. This class lets you create geometry type literals.
+ 
+ 
+ The following figure is a code fragment of the "createLiteral(...)" function 
that lets you create a new Geometry Type Literal.
+ 
+ {{attachment:kiwiValueFactory.PNG}} 
  
  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.
  

Reply via email to