org.eaglei.datatools.etl.server
Class ETLSPARQLQueryUtil

java.lang.Object
  extended by org.eaglei.datatools.etl.server.ETLSPARQLQueryUtil

public class ETLSPARQLQueryUtil
extends java.lang.Object


Constructor Summary
ETLSPARQLQueryUtil()
           
 
Method Summary
static java.lang.String forRegex(java.lang.String aRegexFragment)
           
static java.lang.String getEIResourcesByAllPropertiesQuery(com.hp.hpl.jena.rdf.model.Model rdfModel, org.eaglei.security.Session session)
          Returns the a sparql query
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
 

Constructor Detail

ETLSPARQLQueryUtil

public ETLSPARQLQueryUtil()
Method Detail

getEIResourcesByAllPropertiesQuery

public static java.lang.String getEIResourcesByAllPropertiesQuery(com.hp.hpl.jena.rdf.model.Model rdfModel,
                                                                  org.eaglei.security.Session session)
                                                           throws java.lang.Exception
Returns the a sparql query

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-2010 Eagle-I. All Rights Reserved.