-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskosify.cfg
45 lines (40 loc) · 1.8 KB
/
skosify.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Skosify configuration file for transforming simple OWL or RDFS ontologies into SKOS
#
# Can be used e.g. with the DCMI Type vocabulary:
# wget http://dublincore.org/2010/10/11/dctype.rdf -q -O - | ./skosify.py -c owl2skos.cfg -o dctype-skos.ttl
# runtime options which correspond to command line parameters
[options]
narrower=True
transitive=False
aggregates=False
# define custom RDF namespaces that can then be used in the mappings below (and will also be used in the output file)
# Note that common namespaces are already defined: rdf, rdfs, owl, skos, dc, dct
[namespaces]
dcmitype=http://purl.org/dc/dcmitype/
# define what to do with types in the source vocabulary, i.e. how these map to SKOS constructs
# key: CURIE or localname (string)
# value: CURIE or empty (to delete the instances)
# the <key> instances will be replaced with <value> instances.
# key may start with * which matches any localname prefix
# Note: use period '.' instead of colon ':' as separator in key CURIEs
[types]
owl.Class=skos:Concept
rdfs.Class=skos:Concept
# define what to do with literal properties on Concepts
# key: CURIE or localname (string)
# value: CURIE or empty (to delete the property)
# the <key> properties will be replaced with <value> properties
# key may start with * which matches any prefix
# Note: use period '.' instead of colon ':' as separator in key CURIEs
[literals]
rdfs.label=skos:prefLabel
rdfs.comment=skos:definition
# define what to do with relation properties on Concepts
# key: CURIE or localname (string)
# value: CURIE or empty (to delete the property)
# the <key> properties will be replaced with <value> properties
# key may start with * which matches any prefix
# Note: use period '.' instead of colon ':' as separator in key CURIEs
[relations]
rdfs.subClassOf=skos:broader
owl.equivalentClass=skos:exactMatch