Tree [de7a83] master /
History



File Date Author Commit
model-builder 2014-11-20 Marcin Krystek Marcin Krystek [6c9433] Add license statement to all java files
repository-manager 2014-11-22 Marcin Krystek Marcin Krystek [b9a940] add SoftwareEntity type for javascript functions
src 2014-11-24 Marcin Krystek Marcin Krystek [3b007e] store fix
.classpath 2014-07-10 Marcin Krystek Marcin Krystek [1cfc04] Align transformations and analyser to new ontol...
.gitignore 2013-10-28 krystek krystek [0d43b9] a
.project 2013-04-30 Dariusz Janny Dariusz Janny [a63923] Project properties updated.
NOTES 2013-05-22 krystek krystek [6a8970] xsl update
README.txt 2013-05-08 Dariusz Janny Dariusz Janny [7ab83a] Cosmetic changes - small literal bug, removeing...
pom.xml 2014-11-18 Marcin Krystek Marcin Krystek [f3de8f] update repository version to 2.0

Read Me

-----------------------------
INSTALLATION GUIDE
-----------------------------
To run markos-repository component the following tools are required:
	- Java 1.6 or higher
	- Maven 3
	- Sesame data endpoint availabale as REST application
	

I Build markos-reposiotry
-----------------------------
1. Download source from
git://git.berlios.de/markos-repository

2. Use maven install to compile source code and to build proper jar files.

II Prepare data endpoint
-----------------------------
Markos repository uses Sesame data endpoint to communicate with semantic data store.
Current implementation of Markos repository was prepared and tested with Owlim semantic data store.
The detail installation guide of Owlim and Sesame is available here
http://owlim.ontotext.com/display/OWLIMv53/OWLIM-SE+Installation

III Example data
-----------------------------
The example data that can be used to fill data store is available in
markos-repository/builder/ca/example/code_analyser_export_tomcat_2.1-ver2.rdf



-----------------------------
DEVELOPERS GUIDE
-----------------------------
I RepositoryFetch
-----------------------------
1. Obtain interface factory.
Create RepositoryFetchFactory instance. Use RepositoryFetchFactoryImpl() to use default sesame endpoint
(http://markos.man.poznan.pl/openrdf-sesame). Use RepositoryFetchFactoryImpl(String repositoryURL, String repositoryID)
to provide location and id of the custom sesame endpoint.

2. Obtain fetch interface.
Use factory instance from previous point to obtain an instance of RepositoryFetch interface.
For this purpose use RepositoryFetchFactory.getRepositoryFetch() method.

3. Get Markos model objects
Use IRepositoryFetch.executeQuery(String sparqlQuery, Class<T> type)  or
IRepositoryFetch.executeQuery(String sparqlQuery) methods to retrieve Markos model objects from the semantic store.
In both cases sparqlQuery must bind variable "uri" with the URI of the concept instance available in the store.
User must ensure that java class "type" is designed to represent a semantic concept described by the URI.

Example sparqlQuery:
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX soft:<http://www.markosproject.eu/ontologies/software#>
SELECT ?uri
FROM <http://www.ontotext.com/explicit>
WHERE {
	?uri rdf:type soft:Package .
}

Example executeQuery() call:
IRepositoryFetch.executeQuery(sparqlQuery, eu.markosproject.commons.model.software.Package.class);


II RepositoryStore
-----------------------------
Not implemented yet.