Package org.apache.stanbol.rules.adapters.sparql

Examples of org.apache.stanbol.rules.adapters.sparql.SPARQLTriple


            String[] filterArray = new String[filters.size()];
            filterArray = filters.toArray(filterArray);

            return (T) new SPARQLNot(optional, filterArray);
        } else {
            return (T) new SPARQLTriple(sparqlArgument1.getObject()
                                        + " <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> "
                                        + sparqlArgument2.getObject());
        }

    }
View Full Code Here


        SPARQLObject sparqlArgument1 = adapter.adaptTo(tmp.getArgument1(), SPARQLObject.class);
        SPARQLObject sparqlDT = adapter.adaptTo(tmp.getObjectProperty(), SPARQLObject.class);
        SPARQLObject sparqlArgument2 = adapter.adaptTo(tmp.getArgument2(), SPARQLObject.class);

        return (T) new SPARQLTriple(sparqlArgument1.getObject() + " " + sparqlDT.getObject() + " "
                                    + sparqlArgument2.getObject());
    }
View Full Code Here

        SPARQLObject sparqlArgument1 = adapter.adaptTo(tmp.getArgument1(), SPARQLObject.class);
        SPARQLObject sparqlDT = adapter.adaptTo(tmp.getDatatypeProperty(), SPARQLObject.class);
        SPARQLObject sparqlArgument2 = adapter.adaptTo(tmp.getArgument2(), SPARQLObject.class);

        return (T) new SPARQLTriple(sparqlArgument1.getObject() + " " + sparqlDT.getObject() + " "
                                    + sparqlArgument2.getObject());

    }
View Full Code Here

    @SuppressWarnings("unchecked")
    @Override
    public <T> T adapt(RuleAtom ruleAtom) {
        org.apache.stanbol.rules.manager.atoms.BlankNodeAtom tmp = (org.apache.stanbol.rules.manager.atoms.BlankNodeAtom) ruleAtom;
        return (T) new SPARQLTriple(tmp.getArgument2().toString() + " " + tmp.getArgument1().toString()
                                    + " _:bNode");

    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.adapters.sparql.SPARQLTriple

Copyright © 2018 www.massapicom. 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.