Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.Model.createStatement()


        RDFNode objectST = model
            .createResource(AdmireRegistryConstants.PlatformOntologyURI
                + factory.generate().asUUID());

        Statement containsConnectionStm = model.createStatement(
            subjectConTupleInput, predicateContainsConnection,
            objectST);
        model.add(containsConnectionStm);

        Statement hasTitle = model.createStatement((Resource) objectST,
View Full Code Here


        Statement containsConnectionStm = model.createStatement(
            subjectConTupleInput, predicateContainsConnection,
            objectST);
        model.add(containsConnectionStm);

        Statement hasTitle = model.createStatement((Resource) objectST,
            model.createProperty(AdmireRegistryConstants.dcterms
                + "title"), dcTitle);
        model.add(hasTitle);

        // add isDataSourceInput
View Full Code Here

                + "title"), dcTitle);
        model.add(hasTitle);

        // add isDataSourceInput
        Statement stmDataSourceInput = null;
        stmDataSourceInput = model.createStatement((Resource) objectST,
            model.createProperty(hasDataSourceInput), input
                .getDataSourceInput());
        model.add(stmDataSourceInput);

        // add SType if any
View Full Code Here

        PEParameter output = (PEParameter) outputIt.next();
        // I add containsConnection inputName
        RDFNode object = model
            .createResource(AdmireRegistryConstants.PlatformOntologyURI
                + factory.generate().asString());
        Statement containsConnectionStm = model.createStatement(
            subjectConTupleOutput, predicateContainsConnection,
            object);
        model.add(containsConnectionStm);

        RDFNode dcTitle = model
View Full Code Here

        model.add(containsConnectionStm);

        RDFNode dcTitle = model
            .createResource(AdmireRegistryConstants.PlatformOntologyURI
                + output.getName());
        Statement hasTitle = model.createStatement((Resource) object,
            model.createProperty(AdmireRegistryConstants.dcterms
                + "title"), dcTitle);
        model.add(hasTitle);

        // add SType if any
View Full Code Here

        {
            Resource subjectPE = model.createResource(PlatformOntologyURI
                    + processingElement);
            Resource subjectST = model.createResource(PlatformOntologyURI
                    + structuralType);
            Statement stm = model.createStatement(subjectPE, model
                    .createProperty(CRISPDMIOntologyURI + "hasStructuralType"),
                    subjectST);
            model.add(stm);

            Property predicate = model.createProperty(CRISPDMIOntologyURI
View Full Code Here

            model.add(stm);

            Property predicate = model.createProperty(CRISPDMIOntologyURI
                    + "hasOuput");
            RDFNode object = model.createResource(PlatformOntologyURI + input);
            stm = model.createStatement(subjectST, predicate, object);
            model.add(stm);

            predicate = model.createProperty(CRISPDMIOntologyURI + "hasOuput");
            object = model.createResource(PlatformOntologyURI + output);
            stm = model.createStatement(subjectST, predicate, object);
View Full Code Here

            stm = model.createStatement(subjectST, predicate, object);
            model.add(stm);

            predicate = model.createProperty(CRISPDMIOntologyURI + "hasOuput");
            object = model.createResource(PlatformOntologyURI + output);
            stm = model.createStatement(subjectST, predicate, object);
            model.add(stm);
        }
        finally
        {
            model.notifyEvent(GraphEvents.finishRead);
View Full Code Here

        Dataset ds = DatasetFactory.createMem();
        if (createDefaultGraph) {
            numGraphs--;
            Model def = ModelFactory.createDefaultModel();
            for (int i = 1; i <= triplesPerGraph; i++) {
                def.add(def.createStatement(def.createResource("http://default/subject/" + i),
                        def.createProperty("http://default/predicate"), def.createTypedLiteral(i)));
            }
            ds.setDefaultModel(def);
        }
View Full Code Here

        }

        for (int g = 1; g < numGraphs; g++) {
            Model named = ModelFactory.createDefaultModel();
            for (int i = 1; i <= triplesPerGraph; i++) {
                named.add(named.createStatement(named.createResource("http://named/subject/" + i),
                        named.createProperty("http://named/predicate"), named.createTypedLiteral(i)));
            }
            ds.addNamedModel("http://named/" + g, named);
        }
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.