org.eaglei.datatools.etl.server
Class ETLSPARQLQueryUtil
java.lang.Object
org.eaglei.datatools.etl.server.ETLSPARQLQueryUtil
public class ETLSPARQLQueryUtil
- extends java.lang.Object
|
Method Summary |
static java.lang.String |
forRegex(java.lang.String aRegexFragment)
|
static java.lang.String |
getEIResourcesByAllPropertiesQuery(org.eaglei.datatools.provider.RepositoryProvider provider,
com.hp.hpl.jena.rdf.model.Model rdfModel,
org.eaglei.security.Session session)
|
static java.lang.String |
getEIResourcesByOnlyTypeANDRdfsLabel(com.hp.hpl.jena.rdf.model.Model rdfModel)
Returns the a sparql query that asks the repo for the URI of a resource of Model ,It builds query of properties containing only rdfs:type and rdfs:lable as predicate |
static java.lang.String |
getEIResourcesQueryButnotWithPassProperty(com.hp.hpl.jena.rdf.model.Model rdfModel,
com.hp.hpl.jena.rdf.model.Property property)
Returns the a sparql query that asks the repo for the URI of a resource of Model |
static java.lang.String[] |
getInstanceURI(java.lang.String xmlString)
get instance URI from the returned xml |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ETLSPARQLQueryUtil
public ETLSPARQLQueryUtil()
getEIResourcesByAllPropertiesQuery
public static java.lang.String getEIResourcesByAllPropertiesQuery(org.eaglei.datatools.provider.RepositoryProvider provider,
com.hp.hpl.jena.rdf.model.Model rdfModel,
org.eaglei.security.Session session)
throws java.lang.Exception
- Throws:
java.lang.Exception
getEIResourcesQueryButnotWithPassProperty
public static java.lang.String getEIResourcesQueryButnotWithPassProperty(com.hp.hpl.jena.rdf.model.Model rdfModel,
com.hp.hpl.jena.rdf.model.Property property)
- Returns the a sparql query that asks the repo for the URI of a resource of Model
getEIResourcesByOnlyTypeANDRdfsLabel
public static java.lang.String getEIResourcesByOnlyTypeANDRdfsLabel(com.hp.hpl.jena.rdf.model.Model rdfModel)
- Returns the a sparql query that asks the repo for the URI of a resource of Model ,It builds query of properties containing only rdfs:type and rdfs:lable as predicate
forRegex
public static java.lang.String forRegex(java.lang.String aRegexFragment)
getInstanceURI
public static java.lang.String[] getInstanceURI(java.lang.String xmlString)
- get instance URI from the returned xml
- Parameters:
xmlString -
- Returns:
Copyright © 2009-2011 Eagle-I. All Rights Reserved.