Examples of UriRef


Examples of org.apache.clerezza.rdf.core.UriRef

    }
    LockableMGraph contentGraph = cgProvider.getContentGraph();
    Lock readLock = contentGraph.getLock().readLock();
    readLock.lock();
    try {
      if (contentGraph.filter(new UriRef(uri), RDF.type, null).hasNext()) {
        return Response.status(Response.Status.CONFLICT).
            entity("A resource with the specified URI already exists").
            type(MediaType.TEXT_PLAIN_TYPE).build();
      }
    } finally {
      readLock.unlock();
    }
    handler.put(new UriRef(uri), formFile.getMediaType(), content);
    return Response.created(URI.create(uri)).build();
 
View Full Code Here

Examples of org.trialox.rdf.core.UriRef

    log.info("activating RWCFInvoker with locator: " + locator);
    String graphName = (String) context.getProperties().get("graph");
    TripleCollection graph;
    try {
      graph = tcManager.getMGraph(
          new UriRef(graphName));
    } catch (NoSuchEntityException e) {
      graph = tcManager.createMGraph(
          new UriRef(graphName));
    }
    Graph jenaGraph = new JenaGraph(graph);
   
    final BundleContext bundleContext = context.getBundleContext();
    Bundle[] installedBundles = bundleContext.getBundles();
View Full Code Here

Examples of org.wikier.trioo.jtrioo.rdf.URIRef

  }
 
  public void visit(CURIE rdftype) {
    RDFTerm subject;
    if (this.uri != null) {
      subject = new URIRef(this.uri);
    } else {
      subject = this.x;
    }
    this.query.addTriplePattern(new TriplePattern(subject, new AbbrevRdfType(), rdftype));
  }
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.