1
+
2
+ class DocConfig :
3
+
4
+ rdfformats = ["ttl" , "trix" , "trig" , "n3" , "nquads" , "nt" , "xml" ]
5
+
6
+ version = "SPARQLing Unicorn QGIS Plugin OntDoc Script 0.16"
7
+
8
+ versionurl = "https://github.com/sparqlunicorn/sparqlunicornGoesGIS-ontdoc"
9
+
10
+ bibtextypemappings = {"http://purl.org/ontology/bibo/Document" :"@misc" ,"http://purl.org/ontology/bibo/Article" :"@article" ,"http://purl.org/ontology/bibo/Thesis" :"@phdthesis" ,"http://purl.org/ontology/bibo/BookSection" :"@inbook" ,"http://purl.org/ontology/bibo/Book" :"@book" ,"http://purl.org/ontology/bibo/Proceedings" :"@inproceedings" }
11
+
12
+ labelproperties = {
13
+ "http://www.w3.org/2004/02/skos/core#prefLabel" :"DatatypeProperty" ,
14
+ "http://www.w3.org/2004/02/skos/core#prefSymbol" : "DatatypeProperty" ,
15
+ "http://www.w3.org/2004/02/skos/core#altLabel" : "DatatypeProperty" ,
16
+ "https://schema.org/name" : "DatatypeProperty" ,
17
+ "https://schema.org/alternateName" : "DatatypeProperty" ,
18
+ "http://purl.org/dc/terms/title" : "DatatypeProperty" ,
19
+ "http://purl.org/dc/elements/1.1/title" :"DatatypeProperty" ,
20
+ "http://www.w3.org/2004/02/skos/core#altSymbol" : "DatatypeProperty" ,
21
+ "http://www.w3.org/2004/02/skos/core#hiddenLabel" : "DatatypeProperty" ,
22
+ "http://www.w3.org/2000/01/rdf-schema#label" : "DatatypeProperty"
23
+ }
24
+
25
+ baselayers = {
26
+ "OpenStreetMap (OSM)" :{"url" :"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" ,"default" :True ,"type" :"tile" }
27
+ }
28
+
29
+ metadatanamespaces = ["http://purl.org/dc/terms/" ,"http://purl.org/dc/elements/1.1/" ,"http://www.w3.org/ns/prov#" ,"http://www.w3.org/ns/prov-o/" ,"http://creativecommons.org/ns#" ,"http://www.w3.org/ns/dcat#" ,"http://purl.org/cerif/frapo/" ,"http://www.lido-schema.org/" ]
30
+
31
+ collectionclasses = ["http://www.opengis.net/ont/geosparql#FeatureCollection" ,"http://www.opengis.net/ont/geosparql#GeometryCollection" ,"http://www.opengis.net/ont/geosparql#SpatialObjectCollection" ,"http://www.w3.org/2004/02/skos/core#Collection" ,"http://www.w3.org/2004/02/skos/core#OrderedCollection" ,"https://www.w3.org/ns/activitystreams#Collection" ,"https://www.w3.org/ns/activitystreams#OrderedCollection" ]
32
+
33
+ geoliteraltypes = ["http://www.opengis.net/ont/geosparql#wktLiteral" ,"http://www.opengis.net/ont/geosparql#gmlLiteral" ,"http://www.opengis.net/ont/geosparql#kmlLiteral" ,"http://www.opengis.net/ont/geosparql#geoJSONLiteral" ,"http://www.opengis.net/ont/geosparql#dggsLiteral" ]
34
+
35
+ timeproperties = ["http://www.w3.org/2006/time#inXSDDateTime" ,"http://www.w3.org/2006/time#inXSDDate" ,"http://www.w3.org/2006/time#inXSDDateTimeStamp" ,"http://www.w3.org/2006/time#inXSDgYear" ,"http://www.w3.org/2006/time#inXSDgYearMonth" ]
36
+
37
+ timepointerproperties = ["http://www.w3.org/2006/time#hasTime" , "http://www.w3.org/2006/time#hasDuration" ,"http://www.w3.org/2006/time#hasBeginning" ,"http://www.w3.org/2006/time#hasEnd" ]
38
+
39
+ timeliteraltypes = {"http://www.w3.org/2001/XMLSchema#gYear" :"http://www.ontology-of-units-of-measure.org/resource/om-2/year" ,
40
+ "http://www.w3.org/2006/time#generalYear" :"http://www.w3.org/2006/time#unitYear" ,
41
+ "http://www.w3.org/2001/XMLSchema#gMonth" :"http://www.ontology-of-units-of-measure.org/resource/om-2/month" ,
42
+ "http://www.w3.org/TR/owl-time#generalMonth" :"http://www.w3.org/2006/time#unitMonth" ,
43
+ "http://www.w3.org/2001/XMLSchema#gDay" :"http://www.ontology-of-units-of-measure.org/resource/om-2/day" ,
44
+ "http://www.w3.org/TR/owl-time#generalDay" :"http://www.w3.org/2006/time#unitDay" ,
45
+ "http://www.w3.org/2001/XMLSchema#date" :"" ,"http://www.w3.org/2001/XMLSchema#dateTime" :"" }
46
+
47
+ collectionrelationproperties = {
48
+ "http://www.w3.org/2000/01/rdf-schema#member" :"ObjectProperty" ,
49
+ "http://www.w3.org/2004/02/skos/core#member" :"ObjectProperty"
50
+ }
51
+
52
+ invcollectionrelationproperties = {
53
+ "https://www.w3.org/ns/activitystreams#partOf" :"ObjectProperty"
54
+ }
55
+
56
+ valueproperties = {
57
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#value" :"DatatypeProperty" ,
58
+ "http://www.ontology-of-units-of-measure.org/resource/om-2/hasValue" :"ObjectProperty" ,
59
+ "http://www.opengis.net/ont/crs/usesValue" :"ObjectProperty" ,
60
+ "http://www.ontology-of-units-of-measure.org/resource/om-2/hasNumericalValue" :"DatatypeProperty"
61
+ }
62
+
63
+ unitproperties = {
64
+ "http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit" :"ObjectProperty" ,
65
+ "https://www.w3.org/ns/activitystreams#units" :"DatatypeProperty"
66
+ }
67
+
68
+ labelproperties = {
69
+ "http://www.w3.org/2004/02/skos/core#prefLabel" : "DatatypeProperty" ,
70
+ "http://www.w3.org/2004/02/skos/core#prefSymbol" : "DatatypeProperty" ,
71
+ "http://www.w3.org/2004/02/skos/core#altLabel" : "DatatypeProperty" ,
72
+ "https://schema.org/name" : "DatatypeProperty" ,
73
+ "https://schema.org/alternateName" : "DatatypeProperty" ,
74
+ "http://purl.org/dc/terms/title" : "DatatypeProperty" ,
75
+ "http://purl.org/dc/elements/1.1/title" : "DatatypeProperty" ,
76
+ "http://www.w3.org/2004/02/skos/core#altSymbol" : "DatatypeProperty" ,
77
+ "http://www.w3.org/2004/02/skos/core#hiddenLabel" : "DatatypeProperty" ,
78
+ "http://www.w3.org/2000/01/rdf-schema#label" : "DatatypeProperty"
79
+ }
80
+
81
+ commentproperties = {
82
+ "http://www.w3.org/2004/02/skos/core#definition" :"DatatypeProperty" ,
83
+ "http://www.w3.org/2004/02/skos/core#note" : "DatatypeProperty" ,
84
+ "http://www.w3.org/2004/02/skos/core#scopeNote" : "DatatypeProperty" ,
85
+ "http://www.w3.org/2004/02/skos/core#historyNote" : "DatatypeProperty" ,
86
+ "https://schema.org/description" :"DatatypeProperty" ,
87
+ "http://www.w3.org/2000/01/rdf-schema#comment" : "DatatypeProperty" ,
88
+ "http://purl.org/dc/terms/description" : "DatatypeProperty" ,
89
+ "http://purl.org/dc/elements/1.1/description" : "DatatypeProperty"
90
+ }
91
+
92
+ geopointerproperties = {
93
+ "http://www.opengis.net/ont/geosparql#hasGeometry" : "ObjectProperty" ,
94
+ "http://www.opengis.net/ont/geosparql#hasDefaultGeometry" : "ObjectProperty" ,
95
+ "http://www.w3.org/2003/01/geo/wgs84_pos#geometry" : "ObjectProperty" ,
96
+ "http://www.w3.org/2006/vcard/ns#hasGeo" : "ObjectProperty" ,
97
+ "http://schema.org/geo" : "ObjectProperty" ,
98
+ "https://schema.org/geo" : "ObjectProperty" ,
99
+ "http://geovocab.org/geometry#geometry" : "ObjectProperty" ,
100
+ "http://www.w3.org/ns/locn#geometry" : "ObjectProperty" ,
101
+ "http://rdfs.co/juso/geometry" : "ObjectProperty"
102
+ }
103
+
104
+ geolatlonproperties = {
105
+ "http://www.w3.org/2003/01/geo/wgs84_pos#lat" :"DatatypeProperty" ,
106
+ "http://www.w3.org/2003/01/geo/wgs84_pos#long" : "DatatypeProperty" ,
107
+ "https://www.w3.org/ns/activitystreams#latitude" : "DatatypeProperty" ,
108
+ "https://www.w3.org/ns/activitystreams#longitude" : "DatatypeProperty" ,
109
+ "http://www.semanticweb.org/ontologies/2015/1/EPNet-ONTOP_Ontology#hasLatitude" : "DatatypeProperty" ,
110
+ "http://www.semanticweb.org/ontologies/2015/1/EPNet-ONTOP_Ontology#hasLongitude" : "DatatypeProperty" ,
111
+ "http://schema.org/longitude" : "DatatypeProperty" ,
112
+ "https://schema.org/longitude" : "DatatypeProperty" ,
113
+ "http://schema.org/latitude" : "DatatypeProperty" ,
114
+ "https://schema.org/latitude" : "DatatypeProperty" ,
115
+ }
116
+
117
+ geopairproperties = {
118
+ "http://schema.org/longitude" :{"type" :"DatatypeProperty" ,"pair" :"http://schema.org/latitude" ,"islong" :False },
119
+ "http://schema.org/latitude" : {"type" : "DatatypeProperty" , "pair" : "http://schema.org/longitude" ,"islong" :True },
120
+ "https://schema.org/longitude" : {"type" : "DatatypeProperty" , "pair" : "https://schema.org/latitude" ,"islong" :False },
121
+ "https://schema.org/latitude" : {"type" : "DatatypeProperty" , "pair" : "https://schema.org/longitude" ,"islong" :True },
122
+ "http://www.w3.org/2003/01/geo/wgs84_pos#lat" : {"type" : "DatatypeProperty" , "pair" : "http://www.w3.org/2003/01/geo/wgs84_pos#long" ,"islong" :True },
123
+ "http://www.w3.org/2003/01/geo/wgs84_pos#long" : {"type" : "DatatypeProperty" , "pair" : "http://www.w3.org/2003/01/geo/wgs84_pos#lat" ,"islong" :False },
124
+ "http://www.semanticweb.org/ontologies/2015/1/EPNet-ONTOP_Ontology#hasLongitude" : {"type" : "DatatypeProperty" , "pair" : "http://www.semanticweb.org/ontologies/2015/1/EPNet-ONTOP_Ontology#hasLatitude" ,"islong" : False },
125
+ "http://www.semanticweb.org/ontologies/2015/1/EPNet-ONTOP_Ontology#hasLatitude" : {"type" : "DatatypeProperty" , "pair" : "http://www.semanticweb.org/ontologies/2015/1/EPNet-ONTOP_Ontology#hasLongitude" ,"islong" : True }
126
+ }
127
+
128
+
129
+ geoproperties = {
130
+ "http://www.opengis.net/ont/geosparql#asWKT" :"DatatypeProperty" ,
131
+ "http://www.opengis.net/ont/geosparql#asGML" : "DatatypeProperty" ,
132
+ "http://www.opengis.net/ont/geosparql#asKML" : "DatatypeProperty" ,
133
+ "http://www.opengis.net/ont/geosparql#asGeoJSON" : "DatatypeProperty" ,
134
+ "http://www.opengis.net/ont/geosparql#hasGeometry" : "ObjectProperty" ,
135
+ "http://www.opengis.net/ont/geosparql#hasDefaultGeometry" : "ObjectProperty" ,
136
+ "http://www.w3.org/2003/01/geo/wgs84_pos#geometry" : "ObjectProperty" ,
137
+ "http://www.georss.org/georss/point" : "DatatypeProperty" ,
138
+ "http://www.w3.org/2006/vcard/ns#hasGeo" : "ObjectProperty" ,
139
+ "http://schema.org/geo" : "ObjectProperty" ,
140
+ "https://schema.org/geo" : "ObjectProperty" ,
141
+ "http://purl.org/dc/terms/coverage" :"DatatypeProperty" ,
142
+ "http://purl.org/dc/terms/spatial" :"DatatypeProperty" ,
143
+ "http://schema.org/polygon" : "DatatypeProperty" ,
144
+ "https://schema.org/polygon" : "DatatypeProperty" ,
145
+ "http://geovocab.org/geometry#geometry" : "ObjectProperty" ,
146
+ "http://www.w3.org/ns/locn#geometry" : "ObjectProperty" ,
147
+ "http://rdfs.co/juso/geometry" : "ObjectProperty" ,
148
+ "http://www.wikidata.org/prop/direct/P625" :"DatatypeProperty" ,
149
+ "https://database.factgrid.de/prop/direct/P48" : "DatatypeProperty" ,
150
+ "http://database.factgrid.de/prop/direct/P48" :"DatatypeProperty" ,
151
+ "http://www.wikidata.org/prop/direct/P3896" : "DatatypeProperty"
152
+ }
153
+
154
+ imageextensions = [".apng" ,".bmp" ,".cur" ,".ico" ,".jpg" ,".jpeg" ,".png" ,".gif" ,".tif" ,".svg" ,"<svg" ]
155
+
156
+ meshextensions = [".ply" ,".nxs" ,".nxz" ]
157
+
158
+ videoextensions = [".avi" ,".mp4" ,".ogv" ]
159
+
160
+ audioextensions = [".aac" ,".mp3" ,".mkv" ,".ogg" ,".opus" ,".wav" ]
161
+
162
+ fileextensionmap = {
163
+ ".apng" :"image" ,
164
+ ".bmp" :"image" ,
165
+ ".cur" :"image" ,
166
+ ".ico" :"image" ,
167
+ ".jpg" :"image" ,
168
+ ".jpeg" :"image" ,
169
+ ".png" :"image" ,
170
+ ".gif" :"image" ,
171
+ ".tif" :"image" ,
172
+ ".svg" :"image" ,
173
+ "<svg" :"image" ,
174
+ ".ply" :"mesh" ,
175
+ ".nxs" :"mesh" ,
176
+ ".nxz" :"mesh" ,
177
+ ".avi" :"video" ,
178
+ ".mp4" :"video" ,
179
+ ".ogv" :"video" ,
180
+ ".aac" :"audio" ,
181
+ ".mp3" :"audio" ,
182
+ ".mkv" :"audio" ,
183
+ ".ogg" :"audio" ,
184
+ ".opus" :"audio" ,
185
+ ".wav" :"audio"
186
+ }
187
+
188
+
189
+
190
+
191
+ classtreequery = """PREFIX owl: <http://www.w3.org/2002/07/owl#>\n
192
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n
193
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n
194
+ SELECT DISTINCT ?subject ?label ?supertype\n
195
+ WHERE {\n
196
+ { ?individual rdf:type ?subject . } UNION { ?subject rdf:type owl:Class . } UNION { ?subject rdf:type rdfs:Class . } .\n
197
+ OPTIONAL { ?subject rdfs:subClassOf ?supertype } .\n
198
+ OPTIONAL { ?subject rdfs:label ?label. filter(langMatches(lang(?label),\" en\" )) }
199
+ OPTIONAL { ?subject rdfs:label ?label }.\n
200
+ FILTER (\n
201
+ (\n
202
+ ?subject != owl:Class &&\n
203
+ ?subject != rdf:List &&\n
204
+ ?subject != rdf:Property &&\n
205
+ ?subject != rdfs:Class &&\n
206
+ ?subject != rdfs:Datatype &&\n
207
+ ?subject != rdfs:ContainerMembershipProperty &&\n
208
+ ?subject != owl:DatatypeProperty &&\n
209
+ ?subject != owl:AnnotationProperty &&\n
210
+ ?subject != owl:Restriction &&\n
211
+ ?subject != owl:ObjectProperty &&\n
212
+ ?subject != owl:NamedIndividual &&\n
213
+ ?subject != owl:Ontology) )\n
214
+ }"""
0 commit comments