Examples of addTriplePattern()


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

            if ((sourceMimetype != null && !sourceMimetype.isEmpty())
                || (targetMimetype != null && !targetMimetype.isEmpty())) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(ONTOLOGY_IRI + "migrates"), node));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(TYPE_IRI), NodeFactory
                    .createURI(ONTOLOGY_IRI + "MigrationPath")));
                if (sourceMimetype != null && !sourceMimetype.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "sourceMimetype"),
                        NodeFactory.createLiteral(sourceMimetype)));
                }
View Full Code Here

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

                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(ONTOLOGY_IRI + "migrates"), node));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(TYPE_IRI), NodeFactory
                    .createURI(ONTOLOGY_IRI + "MigrationPath")));
                if (sourceMimetype != null && !sourceMimetype.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "sourceMimetype"),
                        NodeFactory.createLiteral(sourceMimetype)));
                }
                if (targetMimetype != null && !targetMimetype.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "targetMimetype"),
                        NodeFactory.createLiteral(targetMimetype)));
View Full Code Here

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

                if (sourceMimetype != null && !sourceMimetype.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "sourceMimetype"),
                        NodeFactory.createLiteral(sourceMimetype)));
                }
                if (targetMimetype != null && !targetMimetype.isEmpty()) {
                    group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "targetMimetype"),
                        NodeFactory.createLiteral(targetMimetype)));
                }
                query.addElement(group);
            }
            return this;
View Full Code Here

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

                ElementGroup elements = new ElementGroup();
                Set<String> mimeset = new HashSet<String>();
                Collections.addAll(mimeset, mimetypes);
                for (String mimetype : mimeset) {
                    if (mimetype != null) {
                        elements.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(ONTOLOGY_IRI
                            + "handlesMimetype"), NodeFactory.createLiteral(mimetype)));
                    }
                }
                handlesMimetypes.addElement(elements);
            }
View Full Code Here

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

         */
        public ComponentQuery addHandlesMimetypes(String leftMimetype, String rightMimetype) {
            if (leftMimetype != null && !leftMimetype.isEmpty() && rightMimetype != null && !rightMimetype.isEmpty()) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(ONTOLOGY_IRI + "handlesMimetypes"),
                    node));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(TYPE_IRI), NodeFactory
                    .createURI(ONTOLOGY_IRI + "AcceptedMimetypes")));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "handlesLeftMimetype"),
                    NodeFactory.createLiteral(leftMimetype)));
View Full Code Here

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

            if (leftMimetype != null && !leftMimetype.isEmpty() && rightMimetype != null && !rightMimetype.isEmpty()) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(ONTOLOGY_IRI + "handlesMimetypes"),
                    node));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(TYPE_IRI), NodeFactory
                    .createURI(ONTOLOGY_IRI + "AcceptedMimetypes")));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "handlesLeftMimetype"),
                    NodeFactory.createLiteral(leftMimetype)));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "handlesRightMimetype"),
                    NodeFactory.createLiteral(rightMimetype)));
View Full Code Here

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

                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(ONTOLOGY_IRI + "handlesMimetypes"),
                    node));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(TYPE_IRI), NodeFactory
                    .createURI(ONTOLOGY_IRI + "AcceptedMimetypes")));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "handlesLeftMimetype"),
                    NodeFactory.createLiteral(leftMimetype)));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "handlesRightMimetype"),
                    NodeFactory.createLiteral(rightMimetype)));

                handlesMimetypes.addElement(group);
View Full Code Here

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

                    node));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(TYPE_IRI), NodeFactory
                    .createURI(ONTOLOGY_IRI + "AcceptedMimetypes")));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "handlesLeftMimetype"),
                    NodeFactory.createLiteral(leftMimetype)));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "handlesRightMimetype"),
                    NodeFactory.createLiteral(rightMimetype)));

                handlesMimetypes.addElement(group);
            }
            return this;
View Full Code Here

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

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

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

        public ComponentQuery addInputPort(String accepts) {
            if (accepts != null && !accepts.isEmpty()) {
                Node node = NodeFactory.createAnon();
                ElementGroup group = new ElementGroup();
                group.addTriplePattern(new Triple(wfNode, NodeFactory.createURI(WFDESC_IRI + "hasInput"), node));
                group.addTriplePattern(new Triple(node, NodeFactory.createURI(ONTOLOGY_IRI + "accepts"), NodeFactory
                    .createURI(accepts)));
                query.addElement(group);
            }
            return this;
        }
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.