Package org.apache.stanbol.rules.adapters.swrl

Examples of org.apache.stanbol.rules.adapters.swrl.ArgumentSWRLAtom


            }

            swrldArgument = SWRLLiteralBuilder.getSWRLLiteral(n);
        }

        return (T) new ArgumentSWRLAtom(swrldArgument, number);

    }
View Full Code Here


        org.apache.stanbol.rules.manager.atoms.NumericVariableAtom tmp = (org.apache.stanbol.rules.manager.atoms.NumericVariableAtom) ruleAtom;

        URI uri = tmp.getURI();

        return (T) new ArgumentSWRLAtom((SWRLDArgument) OWLManager.getOWLDataFactory().getSWRLVariable(
            IRI.create(uri.toString())), uri.toString());
    }
View Full Code Here

        org.apache.stanbol.rules.manager.atoms.VariableAtom tmp = (org.apache.stanbol.rules.manager.atoms.VariableAtom) ruleAtom;

        URI uri = tmp.getURI();

        return (T) new ArgumentSWRLAtom((SWRLIArgument) OWLManager.getOWLDataFactory().getSWRLVariable(
            IRI.create(uri.toString())), uri.toString());
    }
View Full Code Here

            swrldArgument = factory.getSWRLVariable(IRI.create(string));
        } else {
            swrldArgument = SWRLLiteralBuilder.getSWRLLiteral(string);
        }

        return (T) new ArgumentSWRLAtom(swrldArgument, string);

    }
View Full Code Here

        org.apache.stanbol.rules.manager.atoms.StringVariableAtom tmp = (org.apache.stanbol.rules.manager.atoms.StringVariableAtom) ruleAtom;

        URI uri = tmp.getURI();

        return (T) new ArgumentSWRLAtom((SWRLDArgument) OWLManager.getOWLDataFactory().getSWRLVariable(
            IRI.create(uri.toString())), uri.toString());
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    @Override
    public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption {
        org.apache.stanbol.rules.manager.atoms.TypedLiteralAtom tmp = (org.apache.stanbol.rules.manager.atoms.TypedLiteralAtom) ruleAtom;

        return (T) new ArgumentSWRLAtom(SWRLLiteralBuilder.getSWRLLiteral(tmp), tmp.toString());
    }
View Full Code Here

        URI uri = tmp.getURI();

        OWLDataFactory factory = OWLManager.getOWLDataFactory();
        OWLIndividual owlIndividual = factory.getOWLNamedIndividual(IRI.create(uri.toString()));
        SWRLIArgument swrliArgument = factory.getSWRLIndividualArgument(owlIndividual);
        return (T) new ArgumentSWRLAtom(swrliArgument, uri.toString());
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.adapters.swrl.ArgumentSWRLAtom

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.