|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RQG
A Resource Query Graph (RQG
) is a specialized query sent to a
Discovery Server in request of all SSWAP semantic web services
(RDG
s) that satisfy the query. The query is interpreted to mean:
"Get me all resources such that:"
RQG
's SSWAPResource
is a sub-type of a
matched RDG
, and
RQG
's SSWAPSubject
is a super-type of a
matched RDG
, and
RQG
's SSWAPObject
is a sub-type of a
matched RDG
.
Unlike other SSWAP Protocol graphs which have a SSWAPResorce
set
as a dereferencable URI of the resource on the web, an RQG may have a
SSWAPResource
of:
<regex>
where
<regex>
is a SPARQL regex expression (see XQuery 1.0 and
XPath 2.0 Functions and Operators).
For more on the protocol, see SSWAP Protocol.
PDG
,
RDG
,
RIG
,
RRG
Method Summary | |
---|---|
java.util.Collection<java.lang.String> |
executeQuery(com.hp.hpl.jena.rdf.model.Model... models)
Creates and executes a SPARQL query that determines which RDGs match this RQG. |
java.lang.String |
getQuery()
Gets a SPARQL query that can be executed over a model containing RDGs to determine which RDGs match this RQG. |
java.util.Collection<RDG> |
invoke()
Sends this RQG as a query to the default Discovery Server |
java.util.Collection<RDG> |
invoke(java.net.URI discoveryServerURI)
Sends this RQG as a query to the specified discovery server instance. |
boolean |
satisfiesResource(RDG rdg)
Checks whether this RQG matches the given RDG |
Methods inherited from interface info.sswap.api.model.SSWAPProtocol |
---|
createGraph, createObject, createObject, createSubject, createSubject, getMappings, getProvider, getResource, isMultiGraphs, isPattern |
Methods inherited from interface info.sswap.api.model.SSWAPDocument |
---|
createAnonymousDatatype, createAnonymousType, createIndividual, createIndividual, createIntersectionOf, createList, createLiteral, createTypedLiteral, createUnionOf, getDatatype, getPredicate, getType, newIndividual, newIndividual |
Methods inherited from interface info.sswap.api.model.SSWAPModel |
---|
addImport, checkProfile, dereference, dereference, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate |
Method Detail |
---|
java.lang.String getQuery()
java.util.Collection<java.lang.String> executeQuery(com.hp.hpl.jena.rdf.model.Model... models)
models
- models containing RDGs, their closures and inferred statements
java.util.Collection<RDG> invoke(java.net.URI discoveryServerURI) throws java.io.IOException, DataAccessException
discoveryServerURI
- the URI of the Discovery Server query end-point (may be null; in such a case, the default DS will be used)
java.io.IOException
- if an I/O error should occur
DataAccessException
- if there is a problem retrieving/reading RDGs for the services returned by the discovery serverjava.util.Collection<RDG> invoke() throws java.io.IOException, DataAccessException
java.io.IOException
- if an I/O error should occur
DataAccessException
- if there is a problem retrieving/reading RDGs for the services returned by the discovery serverboolean satisfiesResource(RDG rdg)
rdg
- the RDG
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |