Package org.apache.clerezza.rdf.utils

Examples of org.apache.clerezza.rdf.utils.GraphNode.addProperty()


        list.add(greetings.next().getSubject());
      }
    } finally {
      l.unlock();
    }
    result.addProperty(RDF.type, CURIE.CuriePrefixBindingList);
    result.addProperty(RDF.type, PLATFORM.HeadedPage);
    return result;
  }

  @GET
View Full Code Here


      }
    } finally {
      l.unlock();
    }
    result.addProperty(RDF.type, CURIE.CuriePrefixBindingList);
    result.addProperty(RDF.type, PLATFORM.HeadedPage);
    return result;
  }

  @GET
  @Path("get")
View Full Code Here

    MGraph unionMGraph = new UnionMGraph(resultGraph, contentGraph);
    Lock l = contentGraph.getLock().readLock();
    l.lock();
    try {
      GraphNode result = new GraphNode(getBindingWithValue(bindingValue, contentGraph), unionMGraph);
      result.addProperty(RDF.type, PLATFORM.HeadedPage);
      return result;
    } finally {
      l.unlock();
    }
  }
View Full Code Here

      if (user != null) {
        Lock writeLock = contentGraph.getLock().writeLock();
        writeLock.lock();
        try {
          resultNode = new GraphNode(new BNode(), contentGraph);
        resultNode.addProperty(PLATFORM.userName,
            new PlainLiteralImpl(name));
        } finally {
          writeLock.unlock();
        }
       
View Full Code Here

    }
    if (!freeConceptProviderFound && freeConceptProvider != null) {
      retrieveConcepts(freeConceptProvider, first, resultNode, searchTerm);
    }
    addCreationOfNewFreeConceptSuggested(resultNode, searchTerm);
    resultNode.addProperty(RDF.type, QUERYRESULT.QueryResult);
    return resultNode;
  }

  /**
   * Adds a boolean value that answers whether the UI shall suggest to create
View Full Code Here

    GraphNode userNode  = userManager.getUserInSystemGraph(userName);
    Lock l = userNode.writeLock();
    l.lock();
    try {
      userNode.deleteProperties(PLATFORM.lastLogin);
      userNode.addProperty(PLATFORM.lastLogin, LiteralFactory.getInstance().createTypedLiteral(new Date()));
    } finally {
      l.unlock();
    }
  }
View Full Code Here

  @GET
  public GraphNode overviewPage() {
    MGraph resultGraph = new SimpleMGraph();
    GraphNode result = new GraphNode(new BNode(), resultGraph);
    result.addProperty(RDF.type, BACKUP.BackupAdminPage);
    result.addProperty(RDF.type, PLATFORM.HeadedPage);
    return result;
  }

  private String getCurrentDate() {
View Full Code Here

  @GET
  public GraphNode overviewPage() {
    MGraph resultGraph = new SimpleMGraph();
    GraphNode result = new GraphNode(new BNode(), resultGraph);
    result.addProperty(RDF.type, BACKUP.BackupAdminPage);
    result.addProperty(RDF.type, PLATFORM.HeadedPage);
    return result;
  }

  private String getCurrentDate() {
    DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
View Full Code Here

    public GraphNode logoutSuccessPage(@Context UriInfo uriInfo) {
  TrailingSlash.enforcePresent(uriInfo);
  GraphNode result = new GraphNode(new BNode(), new SimpleMGraph());
  PlainLiteral message = new PlainLiteralImpl(
    "You successfully logged out.");
  result.addProperty(LOGIN.message, message);
  result.addProperty(RDF.type, LOGIN.LoginPage);

  String baseUri = uriInfo.getBaseUri().getScheme() + "://"
    + uriInfo.getBaseUri().getAuthority();
View Full Code Here

  TrailingSlash.enforcePresent(uriInfo);
  GraphNode result = new GraphNode(new BNode(), new SimpleMGraph());
  PlainLiteral message = new PlainLiteralImpl(
    "You successfully logged out.");
  result.addProperty(LOGIN.message, message);
  result.addProperty(RDF.type, LOGIN.LoginPage);

  String baseUri = uriInfo.getBaseUri().getScheme() + "://"
    + uriInfo.getBaseUri().getAuthority();

  result.addProperty(LOGIN.refererUri, new UriRef(baseUri + "/dashboard/overview"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.