}
return result;
}
+
+ public static Resource getPossiblePredicateByNameFromType(ReadGraph graph, Resource type, String name) throws DatabaseException {
+ Map<String,Resource> domain = getDomainOf(graph, type);
+ return domain.get(name);
+ }
public static Resource getPossiblePredicateByName(ReadGraph graph, Resource instance, String predicateName) throws DatabaseException {
for(Resource type : graph.getPrincipalTypes(instance)) {
@private
@JavaName getURI
uriOfResource :: Resource -> <ReadGraph> String
+
+ @private
+ @JavaName getPossibleURI
+ possibleUriOfResource :: Resource -> <ReadGraph> Maybe String
@JavaName getObjects
objects_ :: Resource -> Resource -> <ReadGraph> Collection Resource
"Returns the URI of the given value."
uriOf :: a -> <ReadGraph> String
-
+
+ "Returns the URI of the given value if it exists or Nothing."
+ possibleUriOf :: a -> <ReadGraph> Maybe String
+
"Reads the name of the value."
nameOf :: a -> <ReadGraph> String
possibleNameOf :: a -> <ReadGraph> Maybe String
instance Browsable Resource where
fromUri = resource
uriOf = uriOfResource
+ possibleUriOf = possibleUriOfResource
nameOf r = relatedValue r L0.HasName
possibleNameOf r = possibleRelatedValue r L0.HasName
@inline
copyTo_ :: Resource -> Resource -> <WriteGraph> Collection Resource
@JavaName getPossiblePredicateByName
possiblePredicateByName :: Resource -> String -> <ReadGraph> Maybe Resource
+ @JavaName getPossiblePredicateByNameFromType
+ possiblePredicateByNameFromType :: Resource -> String -> <ReadGraph> Maybe Resource
copyTo :: Resource -> Resource -> <WriteGraph> Resource
copyTo targetContainer source = do