Page MenuHomePhabricator

wikibase-bootstrap.ttl

Authored By
Olea
Sep 22 2025, 8:23 PM
Size
3 KB
Referenced Files
None
Subscribers

wikibase-bootstrap.ttl

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf1: <http://www.w3.org/TR/rdf-syntax-grammar> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix wbbs: <https://wikiba.se/bootstrap#> .
@prefix wd: <https://www.wikidata.org/entity/> .
wbbs: a owl:Ontology ;
dc11:creator "Clair Kronk",
"Ismael Olea" ;
dc11:title "The Wikibase bootstrap set" ;
dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
dcterms:rights "CC0 1.0 Universal" ;
owl:versionInfo "2025-09-30" .
wbbs:P1 a owl:ObjectProperty ;
rdfs:label "instance of"@en ;
dc11:description "rdf:type"@en ;
owl:equivalentProperty rdf1:type,
wd:P31 ;
skos:note "Wikibase ID: P1"@en,
"Wikibase datatype: wikibase-item"@en .
wbbs:P2 a owl:ObjectProperty ;
rdfs:label "subclass of"@en ;
dc11:description "rdfs:subClassOf"@en ;
owl:equivalentProperty rdfs:subClassOf,
wd:P279 ;
skos:note "Wikibase ID: P2"@en,
"Wikibase datatype: wikibase-item"@en .
wbbs:P3 a owl:ObjectProperty ;
rdfs:label "part of"@en ;
dc11:description "schema:isPartOf"@en ;
owl:equivalentProperty schema:isPartOf,
wd:P361 ;
skos:note "Wikibase ID: P3"@en,
"Wikibase datatype: wikibase-item"@en .
wbbs:P4 a owl:ObjectProperty ;
rdfs:label "subproperty of"@en ;
dc11:description "rdfs:subPropertyOf"@en ;
owl:equivalentProperty rdfs:subPropertyOf,
wd:P1647 ;
skos:note "Wikibase ID: P4"@en,
"Wikibase datatype: wikibase-item"@en .
wbbs:P5 a owl:ObjectProperty ;
rdfs:label "exact match"@en ;
dc11:description "skos:exactMatch"@en ;
owl:equivalentProperty skos:exactMatch,
wd:P2888 ;
skos:note "Wikibase ID: P5"@en,
"Wikibase datatype: wikibase-item"@en .
wbbs:P6 a owl:ObjectProperty ;
rdfs:label "Wikidata Entity ID"@en ;
dc11:description "used to indicate a mapping (of some undefined nature, but can be further specified by individual Wikibases) from a Wikibase Item, Property, Lexeme, etc. to Wikidata"@en ;
skos:note "Wikibase ID: P6"@en,
"Wikibase datatype: ExternalId"@en ;
wbbs:P7 "http://www.wikidata.org/entity/$1" .
wbbs:P7 a owl:DatatypeProperty ;
rdfs:label "formatter URI"@en ;
dc11:description "web page URI; URI template from which \"$1\" can be automatically replaced with the effective property value on items. If the site goes offline, set it to deprecated rank. If the formatter URI changes, add a new statement with preferred rank"@en ;
owl:equivalentProperty wd:P1630 ;
skos:note "Wikibase ID: P7"@en,
"Wikibase datatype: string"@en .
wbbs:P8 a owl:DatatypeProperty ;
rdfs:label "formatter URI for RDF"@en ;
dc11:description "formatter URL for RDF resource: URI template from which \"$1\" can be automatically replaced with the effective property value on items (it is the URI of the resources, not the URI of the RDF file describing it)"@en ;
owl:equivalentProperty wd:P1921 ;
skos:note "Wikibase ID: P8"@en,
"Wikibase datatype: string"@en .

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21841129
Default Alt Text
wikibase-bootstrap.ttl (3 KB)

Event Timeline

@Olea this is great Turtle and valid OWL-- however, Wikibase doesn't use a traditional OWL schema, instead it uses this ontology here (http://wikiba.se/ontology-1.0.owl), for more info see the documentation here: https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format.

I suppose the one question I have is what is the intent of this Turtle file? It is to be uploaded to a Wikibase instance somehow? Or to showcase how we intend the properties to look as an example, but not as a file to be integrated into the software design?

@Superraptor123

I suppose the one question I have is what is the intent of this Turtle file?

My goals are both you asked. This particular draft is created to be uploaded into a WB instance using an script I'm reusing from the nfdi4culture project. I'm using the same toolchain for our museology KG project. Also, I want to propose to be adopted by wikibase.cloud, as they currently have an option to populate a brand new instance with «sample» data.

And yes, I think it would be fine to have another version, probably just without the skos:note's, to showcase he proposal. But I could live without it :-)

You know I'm not an expert and I'm learning by doing. This is why I always look insecure and ask you for review.

This comment was removed by Olea.