# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# --- Define the Languages for all fields ---
# Uncomment to restrict indexing to a specific list of languages, otherwise all
# languages are indexed
#| @=null;en;de;fr;it

# --- RDF, RDFS and OWL Mappings ---
rdfs:label | d=entityhub:text
rdfs:comment | d=entityhub:text
rdf:type | d=entityhub:ref
rdfs:seeAlso | d=entityhub:ref
# map also wikiPageRedirects to rdfs:seeAlso
dbp-ont:wikiPageRedirects | d=entityhub:ref > rdfs:seeAlso

# used by LOD to link to URIs used to identify the same Entity
owl:sameAs | d=entityhub:ref

# --- Dublin Core (dc terms and dc elements) ---
dc:*
# DC terms subject is used by some DBpedia entities to store the Categories
# Others use skos:subject. Therefore ensure that dc:subjects are references
dc:subject | d=entityhub:ref
# and copy the values to skos:subject
dc:subject | d=entityhub:ref > skos:subject
dc:modified | d=xsd:dateTime
dc:created | d=xsd:dateTime

# all DC Elements (one could also define the mappings to the DC Terms counterparts here
# do not store dc-elements properties, but map them to the dc terms counterpart
#dc-elements:*
dc-elements:contributor > dc:contributor
dc-elements:coverage > dc:coverage
dc-elements:creator > dc:creator
dc-elements:date | d=xsd:dateTime > dc:date
dc-elements:description > dc:description
dc-elements:format > dc:format
dc-elements:identifier > dc:identifier
dc-elements:language > dc:language
dc-elements:publisher > dc:publisher
dc-elements:relation > dc:relation
dc-elements:rights > dc:rights
dc-elements:source > dc:source
dc-elements:subject | d=entityhub:ref > dc:subject
# copy subjects also to skos:subject
dc-elements:subject | d=entityhub:ref > skos:subject
dc-elements:title > dc:title
dc-elements:type > dc:type

# --- Spatial Things ---
geo:lat | d=xsd:double
geo:long | d=xsd:double
geo:alt | d=xsd:int;xsd:float
# one can also copy the valued from the DBpedia properties
# use the elevation if present
dbp-ont:elevation | d=xsd:int > geo:alt

# --- Thesaurus (via SKOS) ---
#SKOS can be used to define hierarchical terminologies
skos:*
skos:broader | d=entityhub:ref
skos:narrower | d=entityhub:ref
skos:related | d=entityhub:ref
skos:member | d=entityhub:ref
skos:subject | d=entityhub:ref
skos:inScheme | d=entityhub:ref
skos:hasTopConcept | d=entityhub:ref
skos:topConceptOf | d=entityhub:ref

# --- Social Networks (via foaf) ---
#The Friend of a Friend schema often used to describe social relations between people
foaf:* 
foaf:knows | d=entityhub:ref
foaf:made | d=entityhub:ref
foaf:maker | d=entityhub:ref
foaf:member | d=entityhub:ref
foaf:homepage | d=xsd:anyURI
foaf:depiction | d=xsd:anyURI
# also use the DBpedia thumbnail as oaf:depiction
dbp-ont:thumbnail | d=xsd:anyURI > foaf:depiction
foaf:img | d=xsd:anyURI
foaf:logo | d=xsd:anyURI
# Documents about the entity
foaf:page | d=xsd:anyURI

# --- dbpedia specific
# the "dbp-ont" defines knowledge mapped to the DBPedia ontology
dbp-ont:*
dbp-ont:birthDate | d=xsd:dateTime
dbp-ont:deathDate | d=xsd:dateTime
dbp-ont:populationTotal | d=xsd:long
dbp-ont:wikiPageExternalLink | d=xsd:anyURI
dbp-ont:areaTotal | d=xsd:double

# the "DBpedia properties are all key values pairs extracted from the info boxes
# on the right hand side of Wikipedia pages.
# Data Quality is to low to use them efficiently
#dbp-prop:*

# Copy only population for now (one could add additional if necessary)!
# use dbp-ont:populationTotal instead
# dbp-prop:population | d=xsd:long

#Deactivated mappings based on dbprops
#dbp-prop:latitude | d=xsd:double > geo:lat
#dbp-prop:longitude | d=xsd:double > geo:long
#dbp-prop:elevation | d=xsd:int;xsd:float > geo:alt
#dbp-prop:website | d=xsd:anyURI > foaf:homepage
