Search in sources :

Example 6 with URI

use of fr.lirmm.graphik.util.URI in project graal by graphik-team.

the class GraalUtils method createPredicate.

/**
 * @param property
 * @return a {@link Predicate} with arity 2 which represents the specified owl data property.
 */
public static Predicate createPredicate(OWLDataPropertyExpression property) {
    Predicate predicate = null;
    URI uri = convertIRI(property.asOWLDataProperty().getIRI());
    predicate = new Predicate(uri, 2);
    return predicate;
}
Also used : DefaultURI(fr.lirmm.graphik.util.DefaultURI) URI(fr.lirmm.graphik.util.URI) Predicate(fr.lirmm.graphik.graal.api.core.Predicate)

Aggregations

URI (fr.lirmm.graphik.util.URI)6 Literal (fr.lirmm.graphik.graal.api.core.Literal)3 DefaultURI (fr.lirmm.graphik.util.DefaultURI)3 Predicate (fr.lirmm.graphik.graal.api.core.Predicate)2 Term (fr.lirmm.graphik.graal.api.core.Term)2 Test (org.junit.Test)2 Atom (fr.lirmm.graphik.graal.api.core.Atom)1 AtomSetException (fr.lirmm.graphik.graal.api.core.AtomSetException)1 BigDecimal (java.math.BigDecimal)1 BigInteger (java.math.BigInteger)1 Resource (org.eclipse.rdf4j.model.Resource)1