Examples of addTriplePattern()


Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

         */
        public ComponentQuery addMeasureInputPort(String relatedObject, String measure) {
            if (measure != null && !measure.isEmpty()) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasInput"), node));
                if (relatedObject != null && !relatedObject.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "relatesTo"),
                        NodeFactory.createURI(ONTOLOGY_IRI + relatedObject)));
                }
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "accepts"), NodeFactory
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

            if (measure != null && !measure.isEmpty()) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasInput"), node));
                if (relatedObject != null && !relatedObject.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "relatesTo"),
                        NodeFactory.createURI(ONTOLOGY_IRI + relatedObject)));
                }
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "accepts"), NodeFactory
                    .createURI(measure)));
                query.addElement(group);
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasInput"), node));
                if (relatedObject != null && !relatedObject.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "relatesTo"),
                        NodeFactory.createURI(ONTOLOGY_IRI + relatedObject)));
                }
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "accepts"), NodeFactory
                    .createURI(measure)));
                query.addElement(group);
            }
            return this;
        }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

         */
        public ComponentQuery addOutputPort(String provides) {
            if (provides != null && !provides.isEmpty()) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasOutput"), node));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "provides"), NodeFactory
                    .createURI(provides)));
                query.addElement(group);
            }
            return this;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

        public ComponentQuery addOutputPort(String provides) {
            if (provides != null && !provides.isEmpty()) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasOutput"), node));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "provides"), NodeFactory
                    .createURI(provides)));
                query.addElement(group);
            }
            return this;
        }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

         */
        public ComponentQuery addMeasureOutputPort(String relatedObject, String measure) {
            if (measure != null && !measure.isEmpty()) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasOutput"), node));
                if (relatedObject != null && !relatedObject.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "relatesTo"),
                        NodeFactory.createURI(ONTOLOGY_IRI + relatedObject)));
                }
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "provides"), NodeFactory
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

            if (measure != null && !measure.isEmpty()) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasOutput"), node));
                if (relatedObject != null && !relatedObject.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "relatesTo"),
                        NodeFactory.createURI(ONTOLOGY_IRI + relatedObject)));
                }
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "provides"), NodeFactory
                    .createURI(measure)));
                query.addElement(group);
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasOutput"), node));
                if (relatedObject != null && !relatedObject.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "relatesTo"),
                        NodeFactory.createURI(ONTOLOGY_IRI + relatedObject)));
                }
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "provides"), NodeFactory
                    .createURI(measure)));
                query.addElement(group);
            }
            return this;
        }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

        public ComponentQuery addInstallationEnvironment(String environment) {
            if (environment != null && !environment.isEmpty()) {
                Node processNode = NodeFactory.createAnon();
                Node installationNode = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasSubProcess"),
                    processNode));
                group.addTriplePattern(new Triple(processNode, NodeFactory.createURI(ONTOLOGY_IRI
                    + "requiresInstallation"), installationNode));
                group.addTriplePattern(new Triple(installationNode, NodeFactory.createURI(ONTOLOGY_IRI
                    + "hasEnvironment"), NodeFactory.createURI(environment)));
View Full Code Here

Examples of com.hp.hpl.jena.sparql.syntax.ElementGroup.addTriplePattern()

                Node processNode = NodeFactory.createAnon();
                Node installationNode = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasSubProcess"),
                    processNode));
                group.addTriplePattern(new Triple(processNode, NodeFactory.createURI(ONTOLOGY_IRI
                    + "requiresInstallation"), installationNode));
                group.addTriplePattern(new Triple(installationNode, NodeFactory.createURI(ONTOLOGY_IRI
                    + "hasEnvironment"), NodeFactory.createURI(environment)));
                query.addElement(group);
            }
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.