|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.client.rdf.builder.ServiceInstanceRDF
public class ServiceInstanceRDF
This class was created to present a way to retrieve a service instances' RDF using just a service name and authority.
For questions, comments, or bugs
email me at edward.kawas@gmail.com
Constructor Summary | |
---|---|
ServiceInstanceRDF()
Default Constructor: Uses the default mobycentral |
|
ServiceInstanceRDF(Registry reg)
Constructor: |
Method Summary | |
---|---|
com.hp.hpl.jena.rdf.model.Model |
createRDFModel(com.hp.hpl.jena.rdf.model.Model model,
MobyService[] services,
boolean useLSIDs)
|
String |
findService(String domain,
String serviceName)
method that retrieves the RDF describing a specific service instance based on the parameters domain, serviceName. |
String |
findService(String authorURI,
String name,
boolean useLSIDs)
PRE: name is either a valid name or null POST: If authorURI is a valid authority, then a RDF containing all of the service instances will be returned. |
String |
findService(String domain,
String serviceName,
String url,
String uri,
boolean useLSIDs)
method that retrieves the RDF describing a specific service instance based on the parameters domain, serviceName, url and uri. |
String |
getLatestLSID(String uri,
String name,
String lsid)
|
static void |
main(String[] args)
|
String |
serializeModel(com.hp.hpl.jena.rdf.model.Model model)
|
boolean |
serviceInstanceExists(String uri,
String name)
PRE: None POST: If a service instance exists such that it has a name of name and an authoring URI of uri true is returned, otherwise false is returned. |
boolean |
serviceInstanceExists(String uri,
String name,
String lsid)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceInstanceRDF() throws MobyException
MobyException
- if there is a problem communicating with the registrypublic ServiceInstanceRDF(Registry reg) throws MobyException
reg
- the registry to use
MobyException
- if there is a problem communicating with the registryMethod Detail |
---|
public final String getLatestLSID(String uri, String name, String lsid)
public static void main(String[] args) throws Exception
Exception
public final boolean serviceInstanceExists(String uri, String name)
POST: If a service instance exists such that it has a name of name and an authoring URI of uri true is returned, otherwise false is returned.
uri
- -
the authors uriname
- -
the name of the service instance
public final boolean serviceInstanceExists(String uri, String name, String lsid)
public final String serializeModel(com.hp.hpl.jena.rdf.model.Model model)
model
- a jena model
public final com.hp.hpl.jena.rdf.model.Model createRDFModel(com.hp.hpl.jena.rdf.model.Model model, MobyService[] services, boolean useLSIDs)
model
- an RDF model to add the services.services
- an array of MobyService objects.useLSIDs
- if true then the LSID for the service is added to the RDF
model otherwise it is not.
public final String findService(String authorURI, String name, boolean useLSIDs)
POST: If authorURI is a valid authority, then a RDF containing all of the service instances will be returned. If authorURI and name are valid then a single RDF containing just the service instance identified by name is returned.
authorURI
- -
the authority to queryname
- -
the name of the service instance if applicable or null.useLSIDs
- whether or not we should include lsids
public final String findService(String domain, String serviceName)
PRE: None.
POST: The RDF describing the service with parameters domain, serviceName is created.
domain
- -
the authoring domain of the service instance in question.serviceName
- -
the name of the service instance in question.
public final String findService(String domain, String serviceName, String url, String uri, boolean useLSIDs)
PRE: None.
POST: The RDF describing the service with parameters domain, serviceName, url and uri is created.
domain
- -
the authoring domain of the service instance in question.serviceName
- -
the name of the service instance in question.url
- -
the URL of the endpoint of the BioMoby registry that you
would like to query. If null, the mobycentral registry is
queried.uri
- -
the URI of the BioMoby registry that you would like to
query. If null, the mobycentral registry is queried.useLSIDs
- -
whether or not the returned RDF document should contain an
LSID. Set this to false to retrieve RDF that service
providers should have.
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |