Package org.openrdf.model

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


            repositoryConnection.add( id, artifactId, valueFactory.createLiteral( project.getArtifactId() ) );
            repositoryConnection.add( id, version, valueFactory.createLiteral( project.getVersion() ) );
            repositoryConnection.add( id, artifactType, valueFactory.createLiteral( project.getArtifactType() ) );
            if ( project.getPublicKeyTokenId() != null )
            {
                URI classifierNode = valueFactory.createURI( project.getPublicKeyTokenId() + ":" );
                for ( Requirement requirement : project.getRequirements() )
                {
                    URI uri = valueFactory.createURI( requirement.getUri().toString() );
                    repositoryConnection.add( classifierNode, uri, valueFactory.createLiteral( requirement.getValue() ) );
                }
View Full Code Here


            if ( project.getPublicKeyTokenId() != null )
            {
                URI classifierNode = valueFactory.createURI( project.getPublicKeyTokenId() + ":" );
                for ( Requirement requirement : project.getRequirements() )
                {
                    URI uri = valueFactory.createURI( requirement.getUri().toString() );
                    repositoryConnection.add( classifierNode, uri, valueFactory.createLiteral( requirement.getValue() ) );
                }

                repositoryConnection.add( id, classifier, classifierNode );
            }
View Full Code Here

            if ( project.getParentProject() != null )
            {
                Project parentProject = project.getParentProject();
                URI pid =
                    valueFactory.createURI( parentProject.getGroupId() + ":" + parentProject.getArtifactId() + ":"
                        + parentProject.getVersion() + ":" + project.getArtifactType() );
                repositoryConnection.add( id, parent, pid );
                artifactDependencies.addAll( storeProjectAndResolveDependencies( parentProject, null,
                                                                                 artifactRepositories, cache ) );
            }
View Full Code Here

                        }
                    }
                    artifactDependencies.add( assembly );
                }// end if dependency not resolved
                URI did =
                    valueFactory.createURI( projectDependency.getGroupId() + ":" + projectDependency.getArtifactId()
                        + ":" + projectDependency.getVersion() + ":" + projectDependency.getArtifactType() );
                repositoryConnection.add( did, RDF.TYPE, artifact );
                repositoryConnection.add( did, groupId, valueFactory.createLiteral( projectDependency.getGroupId() ) );
                repositoryConnection.add( did, artifactId,
                                          valueFactory.createLiteral( projectDependency.getArtifactId() ) );
View Full Code Here

    List<Statement> moleculeRDF = new ArrayList<Statement>();
    ValueFactory factory = ValueFactoryImpl.getInstance();
    Map<Integer, BNode> nodeMap = new HashMap<Integer,BNode>();
    URI moleculeURI;
    if (blankRoot) {
      moleculeURI = factory.createURI(NAMESPACE, "moleculeInstance");
    } else {
      moleculeURI = factory.createURI(NAMESPACE, moleculeID);
    }
    URI partOfURI = factory.createURI(NAMESPACE, "partOf");
    URI hasAtomURI = factory.createURI(NAMESPACE, "hasAtom")
View Full Code Here

    Map<Integer, BNode> nodeMap = new HashMap<Integer,BNode>();
    URI moleculeURI;
    if (blankRoot) {
      moleculeURI = factory.createURI(NAMESPACE, "moleculeInstance");
    } else {
      moleculeURI = factory.createURI(NAMESPACE, moleculeID);
    }
    URI partOfURI = factory.createURI(NAMESPACE, "partOf");
    URI hasAtomURI = factory.createURI(NAMESPACE, "hasAtom")
    URI bondURI = factory.createURI(NAMESPACE, "hasBond");
    moleculeRDF.add(factory.createStatement(moleculeURI, RDF.TYPE, factory.createURI(NAMESPACE, "Molecule")));
View Full Code Here

    if (blankRoot) {
      moleculeURI = factory.createURI(NAMESPACE, "moleculeInstance");
    } else {
      moleculeURI = factory.createURI(NAMESPACE, moleculeID);
    }
    URI partOfURI = factory.createURI(NAMESPACE, "partOf");
    URI hasAtomURI = factory.createURI(NAMESPACE, "hasAtom")
    URI bondURI = factory.createURI(NAMESPACE, "hasBond");
    moleculeRDF.add(factory.createStatement(moleculeURI, RDF.TYPE, factory.createURI(NAMESPACE, "Molecule")));

    for (UNode<String> node : graph.nodes()) {
View Full Code Here

      moleculeURI = factory.createURI(NAMESPACE, "moleculeInstance");
    } else {
      moleculeURI = factory.createURI(NAMESPACE, moleculeID);
    }
    URI partOfURI = factory.createURI(NAMESPACE, "partOf");
    URI hasAtomURI = factory.createURI(NAMESPACE, "hasAtom")
    URI bondURI = factory.createURI(NAMESPACE, "hasBond");
    moleculeRDF.add(factory.createStatement(moleculeURI, RDF.TYPE, factory.createURI(NAMESPACE, "Molecule")));

    for (UNode<String> node : graph.nodes()) {
      BNode bn = factory.createBNode(moleculeID + "_" + node.index());
View Full Code Here

    } else {
      moleculeURI = factory.createURI(NAMESPACE, moleculeID);
    }
    URI partOfURI = factory.createURI(NAMESPACE, "partOf");
    URI hasAtomURI = factory.createURI(NAMESPACE, "hasAtom")
    URI bondURI = factory.createURI(NAMESPACE, "hasBond");
    moleculeRDF.add(factory.createStatement(moleculeURI, RDF.TYPE, factory.createURI(NAMESPACE, "Molecule")));

    for (UNode<String> node : graph.nodes()) {
      BNode bn = factory.createBNode(moleculeID + "_" + node.index());
      nodeMap.put(node.index(), bn);
View Full Code Here

      moleculeURI = factory.createURI(NAMESPACE, moleculeID);
    }
    URI partOfURI = factory.createURI(NAMESPACE, "partOf");
    URI hasAtomURI = factory.createURI(NAMESPACE, "hasAtom")
    URI bondURI = factory.createURI(NAMESPACE, "hasBond");
    moleculeRDF.add(factory.createStatement(moleculeURI, RDF.TYPE, factory.createURI(NAMESPACE, "Molecule")));

    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));
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.