
org.wikidata.query.rdf.common.uri.SKOS Maven / Gradle / Ivy
package org.wikidata.query.rdf.common.uri;
/**
* Used for labels mostly.
*/
public final class SKOS {
/**
* Common prefix for all skos predicates.
*/
public static final String NAMESPACE = "http://www.w3.org/2004/02/skos/core#";
/**
* Wikibase dumps the label in this, schema:name and rdfs:label. We only
* keep rdfs:label.
*/
public static final String PREF_LABEL = NAMESPACE + "prefLabel";
/**
* Wikibase dumps the aliases in this.
*/
public static final String ALT_LABEL = NAMESPACE + "altLabel";
/**
* Adds the skos: prefix to the query.
*/
public static StringBuilder prefix(StringBuilder query) {
return query.append("PREFIX skos: <").append(NAMESPACE).append(">\n");
}
/**
* Utility class uncallable constructor.
*/
private SKOS() {
// Utility class.
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy