Package org.apache.clerezza.rdf.utils

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


    TrailingSlash.enforcePresent(uriInfo);
    SimpleMGraph resultMGraph = new SimpleMGraph();
    GraphNode result = new GraphNode(new BNode(), resultMGraph);
    result.addPropertyValue(LOGGING.loggingConfig, getPropertiesAsString());
    result.addProperty(RDF.type, PLATFORM.HeadedPage);
    result.addProperty(RDF.type, LOGGING.LoggingConfigPage);
    return result;
  }

  private String getPropertiesAsString()
      throws IOException {
View Full Code Here


    MGraph resultGraph = new SimpleMGraph();

    NonLiteral cplNode = getConceptProviderListNode(contentGraph);
    GraphNode resultNode = new GraphNode(cplNode, resultGraph);

    resultNode.addProperty(RDF.type, CONCEPTS.ManageConceptProvidersPage);
    resultNode.addProperty(RDF.type, PLATFORM.HeadedPage);
    return new GraphNode(resultNode.getNode(),
        new UnionMGraph(resultGraph, contentGraph));
  }
View Full Code Here

    NonLiteral cplNode = getConceptProviderListNode(contentGraph);
    GraphNode resultNode = new GraphNode(cplNode, resultGraph);

    resultNode.addProperty(RDF.type, CONCEPTS.ManageConceptProvidersPage);
    resultNode.addProperty(RDF.type, PLATFORM.HeadedPage);
    return new GraphNode(resultNode.getNode(),
        new UnionMGraph(resultGraph, contentGraph));
  }

  /**
 
View Full Code Here

    TrailingSlash.enforcePresent(uriInfo);
    final SimpleMGraph resultGraph = new SimpleMGraph();
    GraphNode graphNode = new GraphNode(new BNode(), resultGraph);
    Set<UriRef> tripleCollections = tcManager.listTripleCollections();
    for (UriRef uriRef : tripleCollections) {
      graphNode.addProperty(GRAPHMANAGEMENT.tripleCollection, uriRef);
      final TripleCollection tripleCollection = tcManager.getTriples(uriRef);
      resultGraph.add(new TripleImpl(uriRef,GRAPHMANAGEMENT.size,
          LiteralFactory.getInstance().createTypedLiteral(
          tripleCollection.size())));
      if (tripleCollection instanceof Graph) {
View Full Code Here

        resultGraph.add(new TripleImpl(uriRef,RDF.type, TCPROVIDER.Graph));
      } else {
        resultGraph.add(new TripleImpl(uriRef,RDF.type, TCPROVIDER.MGraph));
      }
    }
    graphNode.addProperty(RDF.type, GRAPHMANAGEMENT.GraphManagementPage);
    graphNode.addProperty(RDF.type, PLATFORM.HeadedPage);
    return graphNode;
  }

  @Override
View Full Code Here

      } else {
        resultGraph.add(new TripleImpl(uriRef,RDF.type, TCPROVIDER.MGraph));
      }
    }
    graphNode.addProperty(RDF.type, GRAPHMANAGEMENT.GraphManagementPage);
    graphNode.addProperty(RDF.type, PLATFORM.HeadedPage);
    return graphNode;
  }

  @Override
  public Set<GlobalMenuItem> getMenuItems() {
View Full Code Here

    }
    GraphNode conceptCacheEntryGraphNode = new GraphNode(new BNode(),
        conceptCacheMGraph);
    conceptCacheGraphNode.addProperty(CONCEPTS.cacheEntry,
        conceptCacheEntryGraphNode.getNode());
    conceptCacheEntryGraphNode.addProperty(RDF.type, CONCEPTS.SearchTerm);
    conceptCacheEntryGraphNode.addProperty(CONCEPTS.searchTerm,
        LiteralFactory.getInstance().createTypedLiteral(searchTerm));
    conceptCacheEntryGraphNode.addProperty(DC.date,
        LiteralFactory.getInstance().createTypedLiteral(new Date()));
View Full Code Here

    GraphNode conceptCacheEntryGraphNode = new GraphNode(new BNode(),
        conceptCacheMGraph);
    conceptCacheGraphNode.addProperty(CONCEPTS.cacheEntry,
        conceptCacheEntryGraphNode.getNode());
    conceptCacheEntryGraphNode.addProperty(RDF.type, CONCEPTS.SearchTerm);
    conceptCacheEntryGraphNode.addProperty(CONCEPTS.searchTerm,
        LiteralFactory.getInstance().createTypedLiteral(searchTerm));
    conceptCacheEntryGraphNode.addProperty(DC.date,
        LiteralFactory.getInstance().createTypedLiteral(new Date()));

    Iterator<Triple> concepts = parsedGraph.filter(null, RDF.type, SKOS.Concept);
View Full Code Here

    conceptCacheGraphNode.addProperty(CONCEPTS.cacheEntry,
        conceptCacheEntryGraphNode.getNode());
    conceptCacheEntryGraphNode.addProperty(RDF.type, CONCEPTS.SearchTerm);
    conceptCacheEntryGraphNode.addProperty(CONCEPTS.searchTerm,
        LiteralFactory.getInstance().createTypedLiteral(searchTerm));
    conceptCacheEntryGraphNode.addProperty(DC.date,
        LiteralFactory.getInstance().createTypedLiteral(new Date()));

    Iterator<Triple> concepts = parsedGraph.filter(null, RDF.type, SKOS.Concept);
    while (concepts.hasNext()) {
      conceptCacheEntryGraphNode.addProperty(CONCEPTS.searchResult,
View Full Code Here

    conceptCacheEntryGraphNode.addProperty(DC.date,
        LiteralFactory.getInstance().createTypedLiteral(new Date()));

    Iterator<Triple> concepts = parsedGraph.filter(null, RDF.type, SKOS.Concept);
    while (concepts.hasNext()) {
      conceptCacheEntryGraphNode.addProperty(CONCEPTS.searchResult,
          concepts.next().getSubject());
    }
    conceptCacheMGraph.addAll(parsedGraph);
  }
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.