Esempio n. 1
0
 public String write(String spaceURI, Graph triples, User authorized)
     throws SpaceNotExistsException, UnsupportedSemanticFormatException, PersistenceException {
   final String graphuri = write(spaceURI, triples);
   authz.add(graphuri, authorized); // TODO remove graphs when they are taken
   return graphuri;
 }
Esempio n. 2
0
 public Graph read(String spaceURI, String graphURI, SemanticFormat outputFormat, User user)
     throws SpaceNotExistsException, AuthorizationException {
   if (authz.isUserAuthorized(graphURI, user))
     return concreteRead(spaceURI, graphURI, outputFormat);
   throw new AuthorizationException("Unable to access to" + graphURI);
 }
Esempio n. 3
0
 public Graph take(String spaceURI, String graphURI, SemanticFormat outputFormat, User authorized)
     throws SpaceNotExistsException, AuthorizationException, PersistenceException {
   if (authz.isUserAuthorized(graphURI, authorized))
     return concreteTake(spaceURI, graphURI, outputFormat);
   throw new AuthorizationException("Unable to access to" + graphURI);
 }