Package org.wikidata.wdtk.rdf
Class Vocabulary
java.lang.Object
org.wikidata.wdtk.rdf.Vocabulary
This class contains static methods and constants that define the various OWL
and RDF vocabularies that are used in the export.
- Author:
- Markus Kroetzsch
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected static final char[]
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Property "wasDerivedFrom" of the provenance ontology.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Property "about" of schema.org.static final String
Class for Wikipedia articles.static final String
Property "description" of schema.org.static final String
Property "inLanguage" of schema.org.static final String
Property "altLabel" of SKOS.static final String
static final String
Class for Wikibase best rank.static final String
Property for connecting Wikibase property entities to their statement properties (linking entities to statements).static final String
static final String
Property for connecting Wikibase property entities to their direct value properties (linking entities to their simplified statement's main values).static final String
Property for defining the globe of a globe coordinates value.static final String
Property for defining the latitude of a globe coordinates value.static final String
Property for defining the longitude of a globe coordinates value.static final String
Property for defining the precision of a globe coordinates value.static final String
Class for Wikibase globe coordinates values.static final String
Class for Wikibase items.static final String
Property for connecting Wikibase property entities to their no-value classes for qualifiers.static final String
IRI used as the unit of quantities that have no unit.static final String
Property for connecting Wikibase property entities to their main no-value classes.static final String
static final String
static final String
Class for Wikibase properties.static final String
Property for defining the datatype of a Wikibase property.static final String
Property for connecting Wikibase property entities to their qualifier properties (linking to a statement's qualifier value).static final String
Property for connecting Wikibase property entities to their qualifier value properties (linking to a statement's qualifier value).static final String
Property for defining the numeric value of a quantity value.static final String
Property for defining the lower bound of a quantity value.static final String
Property for defining the unit of a quantity value.static final String
Property for defining the upper bound of a quantity value.static final String
Class for Wikibase quantity values.static final String
Property for Wikibase rank.static final String
Class for Wikibase references.static final String
Property for connecting Wikibase property entities to their reference properties.static final String
Property for connecting Wikibase property entities to their reference value properties.static final String
Class for Wikibase statements.static final String
Property for connecting Wikibase property entities to their statement main value properties (linking to a statement's main value).static final String
Property for connecting Wikibase property entities to their statement main value properties, value version (linking to a statement's main value).static final String
Property for defining the time point of a time value.static final String
Property for defining the preferred calendar of a time value.static final String
Property for defining the precision of a time value.static final String
Property for defining the timezone of a time value.static final String
Class for Wikibase time values.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns a map that defines OWL types for all known vocabulary elements.static String
getPropertyUri
(PropertyIdValue propertyIdValue, PropertyContext propertyContext) Get the URI for the given property in the given context.static String
getQuantityValueUri
(QuantityValue value) static String
getReferenceUri
(Reference reference) static String
static String
getStatementUri
(Statement statement) Get the URI for the given statement.static String
getTimeValueUri
(TimeValue value)
-
Field Details
-
PREFIX_WIKIDATA_STATEMENT
- See Also:
-
PREFIX_PROPERTY
- See Also:
-
PREFIX_PROPERTY_STATEMENT
- See Also:
-
PREFIX_PROPERTY_STATEMENT_VALUE
- See Also:
-
PREFIX_PROPERTY_DIRECT
- See Also:
-
PREFIX_PROPERTY_QUALIFIER
- See Also:
-
PREFIX_PROPERTY_QUALIFIER_VALUE
- See Also:
-
PREFIX_PROPERTY_REFERENCE
- See Also:
-
PREFIX_PROPERTY_REFERENCE_VALUE
- See Also:
-
PREFIX_GEO
- See Also:
-
PREFIX_WIKIDATA_REFERENCE
- See Also:
-
PREFIX_WIKIDATA_NO_VALUE
- See Also:
-
PREFIX_WIKIDATA_NO_QUALIFIER_VALUE
- See Also:
-
PREFIX_WIKIDATA_VALUE
- See Also:
-
PREFIX_WBONTO
- See Also:
-
PREFIX_RDF
- See Also:
-
PREFIX_RDFS
- See Also:
-
PREFIX_OWL
- See Also:
-
PREFIX_XSD
- See Also:
-
PREFIX_SCHEMA
- See Also:
-
PREFIX_SKOS
- See Also:
-
PREFIX_PROV
- See Also:
-
RDF_TYPE
- See Also:
-
RDF_LANG_STRING
- See Also:
-
RDFS_LABEL
- See Also:
-
RDFS_SEE_ALSO
- See Also:
-
RDFS_LITERAL
- See Also:
-
RDFS_SUBCLASS_OF
- See Also:
-
RDFS_SUBPROPERTY_OF
- See Also:
-
OWL_THING
- See Also:
-
OWL_CLASS
- See Also:
-
OWL_OBJECT_PROPERTY
- See Also:
-
OWL_DATATYPE_PROPERTY
- See Also:
-
OWL_RESTRICTION
- See Also:
-
OWL_SOME_VALUES_FROM
- See Also:
-
OWL_ON_PROPERTY
- See Also:
-
OWL_COMPLEMENT_OF
- See Also:
-
XSD_DOUBLE
- See Also:
-
XSD_DECIMAL
- See Also:
-
XSD_INT
- See Also:
-
XSD_DATE
- See Also:
-
XSD_G_YEAR
- See Also:
-
XSD_G_YEAR_MONTH
- See Also:
-
XSD_DATETIME
- See Also:
-
XSD_STRING
- See Also:
-
OGC_LOCATION
- See Also:
-
DT_ITEM
- See Also:
-
DT_PROPERTY
- See Also:
-
DT_LEXEME
- See Also:
-
DT_FORM
- See Also:
-
DT_SENSE
- See Also:
-
DT_MEDIA_INFO
- See Also:
-
DT_STRING
- See Also:
-
DT_URL
- See Also:
-
DT_COMMONS_MEDIA
- See Also:
-
DT_TIME
- See Also:
-
DT_GLOBE_COORDINATES
- See Also:
-
DT_QUANTITY
- See Also:
-
DT_MONOLINGUAL_TEXT
- See Also:
-
DT_EXTERNAL_ID
- See Also:
-
DT_MATH
- See Also:
-
DT_GEO_SHAPE
- See Also:
-
DT_TABULAR_DATA
- See Also:
-
DT_EDTF
- See Also:
-
SKOS_ALT_LABEL
Property "altLabel" of SKOS.- See Also:
-
SCHEMA_ABOUT
Property "about" of schema.org.- See Also:
-
SCHEMA_ARTICLE
Class for Wikipedia articles.- See Also:
-
SCHEMA_DESCRIPTION
Property "description" of schema.org.- See Also:
-
SCHEMA_IN_LANGUAGE
Property "inLanguage" of schema.org.- See Also:
-
PROV_WAS_DERIVED_FROM
Property "wasDerivedFrom" of the provenance ontology.- See Also:
-
WB_ITEM
Class for Wikibase items.- See Also:
-
WB_REFERENCE
Class for Wikibase references.- See Also:
-
WB_PROPERTY
Class for Wikibase properties.- See Also:
-
WB_STATEMENT
Class for Wikibase statements.- See Also:
-
WB_QUANTITY_VALUE
Class for Wikibase quantity values.- See Also:
-
WB_TIME_VALUE
Class for Wikibase time values.- See Also:
-
WB_GLOBE_COORDINATES_VALUE
Class for Wikibase globe coordinates values.- See Also:
-
WB_PROPERTY_TYPE
Property for defining the datatype of a Wikibase property.- See Also:
-
WB_RANK
Property for Wikibase rank.- See Also:
-
WB_BEST_RANK
Class for Wikibase best rank.- See Also:
-
WB_GEO_GLOBE
Property for defining the globe of a globe coordinates value.- See Also:
-
WB_GEO_LATITUDE
Property for defining the latitude of a globe coordinates value.- See Also:
-
WB_GEO_LONGITUDE
Property for defining the longitude of a globe coordinates value.- See Also:
-
WB_GEO_PRECISION
Property for defining the precision of a globe coordinates value.- See Also:
-
WB_TIME
Property for defining the time point of a time value.- See Also:
-
WB_TIME_PRECISION
Property for defining the precision of a time value.- See Also:
-
WB_TIME_TIMEZONE
Property for defining the timezone of a time value.- See Also:
-
WB_TIME_CALENDAR_MODEL
Property for defining the preferred calendar of a time value.- See Also:
-
WB_QUANTITY_AMOUNT
Property for defining the numeric value of a quantity value.- See Also:
-
WB_QUANTITY_LOWER_BOUND
Property for defining the lower bound of a quantity value.- See Also:
-
WB_QUANTITY_UPPER_BOUND
Property for defining the upper bound of a quantity value.- See Also:
-
WB_QUANTITY_UNIT
Property for defining the unit of a quantity value.- See Also:
-
WB_NO_UNIT
IRI used as the unit of quantities that have no unit.- See Also:
-
WB_NORMAL_RANK
- See Also:
-
WB_PREFERRED_RANK
- See Also:
-
WB_DEPRECATED_RANK
- See Also:
-
WB_BADGE
- See Also:
-
WB_DIRECT_CLAIM_PROP
Property for connecting Wikibase property entities to their direct value properties (linking entities to their simplified statement's main values).- See Also:
-
WB_CLAIM_PROP
Property for connecting Wikibase property entities to their statement properties (linking entities to statements).- See Also:
-
WB_STATEMENT_PROP
Property for connecting Wikibase property entities to their statement main value properties (linking to a statement's main value).- See Also:
-
WB_STATEMENT_VALUE_PROP
Property for connecting Wikibase property entities to their statement main value properties, value version (linking to a statement's main value).- See Also:
-
WB_QUALIFIER_PROP
Property for connecting Wikibase property entities to their qualifier properties (linking to a statement's qualifier value).- See Also:
-
WB_QUALIFIER_VALUE_PROP
Property for connecting Wikibase property entities to their qualifier value properties (linking to a statement's qualifier value).- See Also:
-
WB_REFERENCE_PROP
Property for connecting Wikibase property entities to their reference properties.- See Also:
-
WB_REFERENCE_VALUE_PROP
Property for connecting Wikibase property entities to their reference value properties.- See Also:
-
WB_NO_VALUE_PROP
Property for connecting Wikibase property entities to their main no-value classes.- See Also:
-
WB_NO_QUALIFIER_VALUE_PROP
Property for connecting Wikibase property entities to their no-value classes for qualifiers.- See Also:
-
hexArray
protected static final char[] hexArray
-
-
Constructor Details
-
Vocabulary
public Vocabulary()
-
-
Method Details
-
getKnownVocabularyTypes
Returns a map that defines OWL types for all known vocabulary elements.- Returns:
- a map from vocabulary URIs to OWL type URIs
-
getStatementUri
Get the URI for the given statement.- Parameters:
statement
- the statement for which to create a URI- Returns:
- the URI
-
getPropertyUri
public static String getPropertyUri(PropertyIdValue propertyIdValue, PropertyContext propertyContext) Get the URI for the given property in the given context.- Parameters:
propertyIdValue
- the property id for which to create a URIpropertyContext
- the context for which the URI will be needed- Returns:
- the URI
-
getReferenceUri
-
getTimeValueUri
-
getGlobeCoordinatesValueUri
-
getQuantityValueUri
-
getStatementRankUri
-