Package org.openrdf.model

Examples of org.openrdf.model.ValueFactory.createURI()


    for (UNode<String> node : graph.nodes()) {
      BNode bn = factory.createBNode(moleculeID + "_" + node.index());
      nodeMap.put(node.index(), bn);
      moleculeRDF.add(factory.createStatement(moleculeURI, hasAtomURI, bn));
      moleculeRDF.add(factory.createStatement(bn, partOfURI, moleculeURI));
      moleculeRDF.add(factory.createStatement(bn, RDF.TYPE, factory.createURI(NAMESPACE + "atom/", node.label())));
    }
    for (ULink<String> link : graph.links()) {
      moleculeRDF.add(factory.createStatement(nodeMap.get(link.first().index()), bondURI, nodeMap.get(link.second().index())));
      moleculeRDF.add(factory.createStatement(nodeMap.get(link.second().index()), bondURI, nodeMap.get(link.first().index())));
    }
View Full Code Here


  public void annotate(String label, int cluster) {
    ValueFactory f = conn.getValueFactory();
   
    Resource node = null;
    if(label.startsWith("http"))
      node = f.createURI(label);
    else
      return ; // we are not annotating literals
         
    URI pred = f.createURI("http://data2semantics.org/experiments/clusterAs");
    Literal val = f.createLiteral(cluster);
View Full Code Here

    if(label.startsWith("http"))
      node = f.createURI(label);
    else
      return ; // we are not annotating literals
         
    URI pred = f.createURI("http://data2semantics.org/experiments/clusterAs");
    Literal val = f.createLiteral(cluster);
    try {
      conn.add(node,pred,val);
    } catch (RepositoryException e) {
      Global.log().warning("Failed to parse original RDF");
View Full Code Here

    FileInputStream fis = new FileInputStream(workflow.file());
    String workflowMD5sum = DigestUtils.md5Hex(fis);
    long currentTimeMilis = System.currentTimeMillis();
   
    // Define all the URI's that we are going to (re)use
    URI eURI = factory.createURI(PROV_NAMESPACE, "Entity");
    URI acURI = factory.createURI(PROV_NAMESPACE, "Activity");
    URI usedURI = factory.createURI(PROV_NAMESPACE, "used");
    URI wgbURI  = factory.createURI(PROV_NAMESPACE, "wasGeneratedBy");
    URI  genAtURI  = factory.createURI(PROV_NAMESPACE, "generatedAtTime");
    URI  startAtURI  = factory.createURI(PROV_NAMESPACE, "startedAtTime");
View Full Code Here

    String workflowMD5sum = DigestUtils.md5Hex(fis);
    long currentTimeMilis = System.currentTimeMillis();
   
    // Define all the URI's that we are going to (re)use
    URI eURI = factory.createURI(PROV_NAMESPACE, "Entity");
    URI acURI = factory.createURI(PROV_NAMESPACE, "Activity");
    URI usedURI = factory.createURI(PROV_NAMESPACE, "used");
    URI wgbURI  = factory.createURI(PROV_NAMESPACE, "wasGeneratedBy");
    URI  genAtURI  = factory.createURI(PROV_NAMESPACE, "generatedAtTime");
    URI  startAtURI  = factory.createURI(PROV_NAMESPACE, "startedAtTime");
    URI  endAtURI  = factory.createURI(PROV_NAMESPACE, "endedAtTime");
View Full Code Here

    long currentTimeMilis = System.currentTimeMillis();
   
    // Define all the URI's that we are going to (re)use
    URI eURI = factory.createURI(PROV_NAMESPACE, "Entity");
    URI acURI = factory.createURI(PROV_NAMESPACE, "Activity");
    URI usedURI = factory.createURI(PROV_NAMESPACE, "used");
    URI wgbURI  = factory.createURI(PROV_NAMESPACE, "wasGeneratedBy");
    URI  genAtURI  = factory.createURI(PROV_NAMESPACE, "generatedAtTime");
    URI  startAtURI  = factory.createURI(PROV_NAMESPACE, "startedAtTime");
    URI  endAtURI  = factory.createURI(PROV_NAMESPACE, "endedAtTime");
   
View Full Code Here

   
    // Define all the URI's that we are going to (re)use
    URI eURI = factory.createURI(PROV_NAMESPACE, "Entity");
    URI acURI = factory.createURI(PROV_NAMESPACE, "Activity");
    URI usedURI = factory.createURI(PROV_NAMESPACE, "used");
    URI wgbURI  = factory.createURI(PROV_NAMESPACE, "wasGeneratedBy");
    URI  genAtURI  = factory.createURI(PROV_NAMESPACE, "generatedAtTime");
    URI  startAtURI  = factory.createURI(PROV_NAMESPACE, "startedAtTime");
    URI  endAtURI  = factory.createURI(PROV_NAMESPACE, "endedAtTime");
   
    URI valueURI = factory.createURI(NAMESPACE, "value");
View Full Code Here

    // Define all the URI's that we are going to (re)use
    URI eURI = factory.createURI(PROV_NAMESPACE, "Entity");
    URI acURI = factory.createURI(PROV_NAMESPACE, "Activity");
    URI usedURI = factory.createURI(PROV_NAMESPACE, "used");
    URI wgbURI  = factory.createURI(PROV_NAMESPACE, "wasGeneratedBy");
    URI  genAtURI  = factory.createURI(PROV_NAMESPACE, "generatedAtTime");
    URI  startAtURI  = factory.createURI(PROV_NAMESPACE, "startedAtTime");
    URI  endAtURI  = factory.createURI(PROV_NAMESPACE, "endedAtTime");
   
    URI valueURI = factory.createURI(NAMESPACE, "value");
   
View Full Code Here

    URI eURI = factory.createURI(PROV_NAMESPACE, "Entity");
    URI acURI = factory.createURI(PROV_NAMESPACE, "Activity");
    URI usedURI = factory.createURI(PROV_NAMESPACE, "used");
    URI wgbURI  = factory.createURI(PROV_NAMESPACE, "wasGeneratedBy");
    URI  genAtURI  = factory.createURI(PROV_NAMESPACE, "generatedAtTime");
    URI  startAtURI  = factory.createURI(PROV_NAMESPACE, "startedAtTime");
    URI  endAtURI  = factory.createURI(PROV_NAMESPACE, "endedAtTime");
   
    URI valueURI = factory.createURI(NAMESPACE, "value");
   
    URI agURI = factory.createURI(PROV_NAMESPACE, "Agent");
View Full Code Here

    URI acURI = factory.createURI(PROV_NAMESPACE, "Activity");
    URI usedURI = factory.createURI(PROV_NAMESPACE, "used");
    URI wgbURI  = factory.createURI(PROV_NAMESPACE, "wasGeneratedBy");
    URI  genAtURI  = factory.createURI(PROV_NAMESPACE, "generatedAtTime");
    URI  startAtURI  = factory.createURI(PROV_NAMESPACE, "startedAtTime");
    URI  endAtURI  = factory.createURI(PROV_NAMESPACE, "endedAtTime");
   
    URI valueURI = factory.createURI(NAMESPACE, "value");
   
    URI agURI = factory.createURI(PROV_NAMESPACE, "Agent");
    URI watURI  = factory.createURI(PROV_NAMESPACE, "wasAttributedTo");
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.