|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.ecs.grimoires.server.impl.metadata.handlers.MetadataUtilities
| Field Summary | |
static String |
MetadataHolderVariableName
|
static String |
MetadataValueVariableName
|
| Constructor Summary | |
MetadataUtilities()
|
|
| Method Summary | |
static com.hp.hpl.jena.rdf.model.RDFNode |
attachMetadata(com.hp.hpl.jena.rdf.model.Model readingModel,
ModelChanges changes,
com.hp.hpl.jena.rdf.model.Resource attachedTo,
Metadata newMetadata)
Attach a piece of metadata to a resource. |
static Collection |
findAnnotatedResources(com.hp.hpl.jena.rdf.model.Model model,
MetadataQueryBag queryBag)
|
static Collection |
getAnnotatedResources(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource entity)
Returns a list of metadata resources attached to a given entity |
static com.hp.hpl.jena.rdf.model.Resource |
getEntityReferenceResource(com.hp.hpl.jena.rdf.model.Model model,
EntityReference ref)
Return the resource referred to by the entityReference or null if it doesn't exist supported entityReferences are: businessKey, serviceKey, tModelKey, bindingKey, messagePartReference and operationReference |
static com.hp.hpl.jena.rdf.model.Resource |
getMetadata(com.hp.hpl.jena.rdf.model.Model model,
String key)
Returns the metadata resource with the given key, or null if there is none. |
static String |
getMetadataKey(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource metadataResource)
Returns the key of the given metadata resource. |
static String |
getWsdlUriFromMessagePart(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource messagePartResource)
This function trasverses the RDF graph to find the name of the WSDL file that the messagePartResource is a part of. |
static String |
getWsdlUriFromOperation(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource operationResource)
This function trasverses the RDF graph to find the name of the WSDL file that the operationResource is a part of. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String MetadataHolderVariableName
public static String MetadataValueVariableName
| Constructor Detail |
public MetadataUtilities()
| Method Detail |
public static com.hp.hpl.jena.rdf.model.RDFNode attachMetadata(com.hp.hpl.jena.rdf.model.Model readingModel,
ModelChanges changes,
com.hp.hpl.jena.rdf.model.Resource attachedTo,
Metadata newMetadata)
throws com.hp.hpl.jena.rdf.model.RDFException,
StoreException
Assumes a read or write lock has been obtained for the model before calling.
changes - The running record of triples to add or removeattachedTo - The resource the metadata should be attached to.newMetadata - The metadata item to be attached
com.hp.hpl.jena.rdf.model.RDFException
StoreException
public static Collection findAnnotatedResources(com.hp.hpl.jena.rdf.model.Model model,
MetadataQueryBag queryBag)
public static Collection getAnnotatedResources(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource entity)
public static com.hp.hpl.jena.rdf.model.Resource getMetadata(com.hp.hpl.jena.rdf.model.Model model,
String key)
public static String getMetadataKey(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource metadataResource)
throws StoreException
StoreException
public static com.hp.hpl.jena.rdf.model.Resource getEntityReferenceResource(com.hp.hpl.jena.rdf.model.Model model,
EntityReference ref)
public static String getWsdlUriFromOperation(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource operationResource)
throws StoreException
StoreException
public static String getWsdlUriFromMessagePart(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource messagePartResource)
throws StoreException
StoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||