eu.fbk.rdfpro.rules.RR Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdfpro-rules Show documentation
Show all versions of rdfpro-rules Show documentation
Parser and writer for RDF in Turtle Quads (TQL) format. TQL is N-Quads
with the more permissive (and efficient!) Turtle encoding. TQL is used in
DBpedia exports and is supported in input by the Virtuoso triple store.
package eu.fbk.rdfpro.rules;
import org.openrdf.model.Namespace;
import org.openrdf.model.URI;
import org.openrdf.model.impl.NamespaceImpl;
import org.openrdf.model.impl.ValueFactoryImpl;
public final class RR {
/** Recommended prefix for the vocabulary namespace: "rr". */
public static final String PREFIX = "rr";
/** Vocabulary namespace: "http://dkm.fbk.eu/rdfpro-rules#". */
public static final String NAMESPACE = "http://dkm.fbk.eu/rdfpro-rules#";
/** Immutable {@link Namespace} constant for the vocabulary namespace. */
public static final Namespace NS = new NamespaceImpl(PREFIX, NAMESPACE);
// CLASSES
/** Class rr:Rule. */
public static final URI RULE = createURI("Rule");
/** Class rr:StaticTerm. */
public static final URI STATIC_TERM = createURI("StaticTerm");
/** Class rr:StaticRule. */
@Deprecated
public static final URI STATIC_RULE = createURI("StaticRule");
/** Class rr:DynamicRule. */
@Deprecated
public static final URI DYNAMIC_RULE = createURI("DynamicRule");
// PROPERTIES
/** Property rr:head. */
public static final URI HEAD = createURI("head");
/** Property rr:body. */
public static final URI BODY = createURI("body");
/** Property rr:data. */
@Deprecated
public static final URI DATA = createURI("data");
/** Property rr:prefix. */
public static final URI PREFIX_PROPERTY = createURI("prefix");
// FUNCTIONS
/** Function rr:mint. */
public static final URI MINT = createURI("mint");
/** Function rr:compatibleDatatype. */
public static final URI COMPATIBLE_DATATYPE = createURI("compatibleDatatype");
/** Function rr:starSelectGraph. */
public static final URI STAR_SELECT_GRAPH = createURI("starSelectGraph");
// HELPER METHODS
private static URI createURI(final String localName) {
return ValueFactoryImpl.getInstance().createURI(NAMESPACE, localName);
}
private RR() {
}
}