Examples of ArgumentSWRLAtom


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

            }

            swrldArgument = SWRLLiteralBuilder.getSWRLLiteral(n);
        }

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

    }
View Full Code Here

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

        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

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

        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

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

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

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

    }
View Full Code Here

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

        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

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

    @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

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

        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
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.