public class RELSRelationshipResolver extends RelationshipResolverBase implements RelationshipResolver
Management.getRelationships(org.fcrepo.server.Context, String, String).childRelationships, DEFAULT_RELATIONSHIP, parentRelationships, REPOSITORY| Constructor and Description |
|---|
RELSRelationshipResolver() |
RELSRelationshipResolver(java.util.Map<java.lang.String,java.lang.String> options) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildRESTParentHierarchy(java.lang.String pid)
Generates a REST based representation of an object and its parents.
|
java.util.Set<java.lang.String> |
getAttributesFromQuery(java.lang.String query,
java.lang.String queryLang,
java.lang.String variable)
Get attributes defined by a query.
|
protected java.util.Set<java.lang.String> |
getParents(java.lang.String pid) |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getRelationships(java.lang.String subject)
Retrieves the relationships for this subject.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getRelationships(java.lang.String subject,
java.lang.String relationship)
Retrieves relationships for this subject, relationship and object.
|
getFedoraResourceURIpublic RELSRelationshipResolver()
public RELSRelationshipResolver(java.util.Map<java.lang.String,java.lang.String> options)
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getRelationships(java.lang.String subject,
java.lang.String relationship)
throws MelcoeXacmlException
RelationshipResolvergetRelationships in interface RelationshipResolverMelcoeXacmlExceptionpublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getRelationships(java.lang.String subject)
throws MelcoeXacmlException
RelationshipResolvergetRelationships in interface RelationshipResolversubject - the subject to return relationships for - either ns:pid,
ns:pid/datastream or the info:fedora/ formsMelcoeXacmlExceptionpublic java.lang.String buildRESTParentHierarchy(java.lang.String pid)
throws MelcoeXacmlException
RelationshipResolverbuildRESTParentHierarchy in interface RelationshipResolverpid - the pid whose parents we need to findMelcoeXacmlExceptionprotected java.util.Set<java.lang.String> getParents(java.lang.String pid)
throws MelcoeXacmlException
MelcoeXacmlExceptionpublic java.util.Set<java.lang.String> getAttributesFromQuery(java.lang.String query,
java.lang.String queryLang,
java.lang.String variable)
throws MelcoeXacmlException
RelationshipResolvergetAttributesFromQuery in interface RelationshipResolverquery - The query to runqueryLang - Language of the query - itql, sparql, spovariable - - the output variable to return (for spo, specify "s", "p" or "o")MelcoeXacmlExceptionCopyright © 2014 DuraSpace. All Rights Reserved.