Cyparkler 1.1

Cyparkler is a software framework which implements a query factory for SPARQL and SeRQL.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
3.3/5 11
DEVELOPED BY:
Monrai Technologies, Inc.
HOMEPAGE:
www.monrai.com
CATEGORY:
ROOT \ Database \ Database APIs
Cyparkler is a software framework which implements a query factory for SPARQL and SeRQL. Sesame 2 onejar.jar required (included in the download). This software is licensed under GNU GPL, you're free to make modifications and build on it.

Usage:

HTTPRepository repository = new HTTPRepository(url, rid);
QueryFactory query = new QueryFactory(repository);
// select a language type
query.setLanguage(QueryLangauge.SPARQL);

// add a variable to the projection item list
ProjectionItemFactory subject = query.addVariable("subject");
// ask for all resources with explicit path
Path p = query.addPath(subject, RDF.TYPE, "type");
//make the path optional
p.setOptional(true);

// create a condition
qf.addCondition("subject", ConditionFactory.INEQUALITY_OPERATOR_TYPE, RDF.TYPE);
ConditionFactory cf = qf.addCondition("type", ConditionFactory.EQUALITY_OPERATOR_TYPE, RDF.SUBCLASSOF);
// negate the condition
cf.setNot(true);
query.setLogicalConnector(SPARQLConstants.AND_LOGICAL_CONNECTOR);

// build the query string, add namespace clause
query.build(true);
String str = query.getQueryString();

// execute the query (automatically builds the query string)
// results[i] = result row, results[i][j] = column (variable)
Value[][] results = query.execute();

What's New in This Release:

Code that required the LOGGER_FILE system property to be set has been removed.

Last updated on June 3rd, 2008

#software framework #query factory #database API #SPARQL #SeRQL #query #factory

Add your review!

SUBMIT