-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit-ontology-comparison.trig
811 lines (781 loc) · 45 KB
/
unit-ontology-comparison.trig
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
@base <https://raw.githubusercontent.com/fusion-jena/abecto-unit-ontology-comparison/main/unit-ontology-comparison.trig#> .
@prefix abecto: <java:de.uni_jena.cs.fusion.abecto.processor.> .
@prefix av: <http://w3id.org/abecto/vocabulary#> .
@prefix om: <http://www.ontology-of-units-of-measure.org/resource/om-2/> .
@prefix pplan: <http://purl.org/net/p-plan#> .
@prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix qudtQuantityKind: <http://qudt.org/vocab/quantitykind/> .
@prefix qudtUnit: <http://qudt.org/vocab/unit/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sorepsu: <http://sweetontology.net/reprSciUnits/> .
@prefix wd: <http://www.wikidata.org/entity/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<plan> a av:Plan ;
rdfs:label "Unit Ontology Comparison"@en;
.
<aspectUnit> a av:Aspect ;
rdfs:label "Unit of Measurement"@en;
av:keyVariableName "unit" ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectUnit> ;
av:associatedDataset <http://www.ontology-of-units-of-measure.org/resource/om-2/> ;
av:definingQuery """
PREFIX om: <http://www.ontology-of-units-of-measure.org/resource/om-2/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?unit ?label ?symbol ?definition ?quantityKind ?ucum ?sameAs ?zeroAtOfBase ?oneEqualsOfBase
WHERE {
?unit a/rdfs:subClassOf* om:Unit .
OPTIONAL { ?unit rdfs:label|om:alternativeLabel ?label }
OPTIONAL { ?unit om:symbol ?symbol }
OPTIONAL { ?unit rdfs:comment ?definition }
OPTIONAL { ?unit ^om:commonlyHasUnit ?quantityKind }
OPTIONAL {
?unit skos:notation ?ucumTmp .
BIND(str(?ucumTmp) AS ?ucum)
}
OPTIONAL { ?unit owl:sameAs ?sameAs }
OPTIONAL { ?unit <tmp:oneEqualsOfBase> ?oneEqualsOfBase }
OPTIONAL {
?unit ^om:hasUnit/om:hasOff-Set ?offset .
BIND(?offset*-1.0 AS ?zeroAtOfBase)
}
}
""" ;
av:hasVariablePath
[ a av:VariablePath ; av:propertyPath "<http://www.w3.org/2004/02/skos/core#notation>" ; av:variableName "ucum" ],
[ a av:VariablePath ; av:propertyPath "^<http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit>/<http://www.ontology-of-units-of-measure.org/resource/om-2/hasOff-Set>" ; av:variableName "offset" ] ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectUnit> ;
av:associatedDataset <http://qudt.org/> ;
av:definingQuery """
PREFIX qudt: <http://qudt.org/schema/qudt/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?unit ?label ?symbol ?definition ?quantityKind ?ucum ?sameAs ?zeroAtOfBase ?oneEqualsOfBase
WHERE {
?unit a/rdfs:subClassOf* qudt:Unit .
OPTIONAL { ?unit qudt:description ?definition }
OPTIONAL { ?unit qudt:symbol ?symbol }
OPTIONAL { { ?unit rdfs:label ?label } UNION { ?unit skos:prefLabel ?label } UNION { ?unit skos:altLabel ?label } }
OPTIONAL { ?unit qudt:hasQuantityKind ?quantityKind }
OPTIONAL {
?unit qudt:ucumCode ?ucumTmp .
BIND(str(?ucumTmp) AS ?ucum)
}
OPTIONAL { ?unit qudt:omUnit ?sameAs }
OPTIONAL { ?unit qudt:conversionMultiplier ?oneEqualsOfBase }
OPTIONAL { ?unit qudt:conversionOffset ?zeroAtOfBase }
}
""" ;
av:hasVariablePath
[ a av:VariablePath ; av:propertyPath "<http://qudt.org/schema/qudt/ucumCode>" ; av:variableName "ucum" ] ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectUnit> ;
av:associatedDataset <http://sweetontology.net/> ;
av:definingQuery """
PREFIX sorepsu: <http://sweetontology.net/reprSciUnits/>
PREFIX sorelsc: <http://sweetontology.net/relaSci/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?unit ?label ?symbol ?ucum ?zeroAtOfBase ?oneEqualsOfBase
WHERE {
?unit a/rdfs:subClassOf* sorepsu:Unit .
OPTIONAL { ?unit rdfs:label ?label }
OPTIONAL { ?unit sorelsc:hasSymbol ?symbol }
OPTIONAL {
?unit skos:notation ?ucumTmp .
BIND(str(?ucumTmp) AS ?ucum)
}
OPTIONAL { ?unit <tmp:oneEqualsOfBase> ?oneEqualsOfBase }
OPTIONAL { ?unit <tmp:zeroAtOfBase> ?zeroAtOfBase }
}
""" ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectUnit> ;
av:associatedDataset <http://www.wikidata.org/> ;
av:definingQuery """
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?unit ?label ?symbol ?quantityKind ?ucum ?oneEqualsOfBase
WHERE {
?unit wdt:P31/wdt:P279* wd:Q47574 . # units of measurement
#FILTER(NOT EXISTS { ?unit wdt:P31/wdt:P279* wd:Q8142 }) # without currencies
#FILTER(NOT EXISTS { ?unit wdt:P31/wdt:P279* wd:Q11639620 }) # without monetary subunits
{?unit rdfs:label ?label } UNION { ?unit skos:altLabel ?label }
OPTIONAL { ?unit wdt:P5061 ?symbol }
OPTIONAL { ?unit wdt:P111 ?quantityKind }
OPTIONAL { ?unit wdt:P7825 ?ucum }
OPTIONAL { ?unit p:P2370/psv:P2370/wikibase:quantityAmount ?oneEqualsOfBase }
}
""" ;
.
<aspectQuantityKind> a av:Aspect ;
rdfs:label "Quantity Kind"@en;
av:keyVariableName "quantityKind" ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectQuantityKind> ;
av:associatedDataset <http://www.ontology-of-units-of-measure.org/resource/om-2/> ;
av:definingQuery """
PREFIX om: <http://www.ontology-of-units-of-measure.org/resource/om-2/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?quantityKind ?label ?amountOfSubstanceDimensionExponent ?electricCurrentDimensionExponent ?lengthDimensionExponent ?luminousIntensityDimensionExponent ?massDimensionExponent ?temperatureDimensionExponent ?timeDimensionExponent
WHERE {
?quantityKind
rdfs:subClassOf
om:Quantity ;
rdfs:label
?label ;
om:symbol
?symbol .
OPTIONAL {
?quantityKind
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty om:hasDimension ;
owl:hasValue [
a om:Dimension ;
om:hasSIAmountOfSubstanceDimensionExponent ?amountOfSubstanceDimensionExponent ;
om:hasSIElectricCurrentDimensionExponent ?electricCurrentDimensionExponent ;
om:hasSILengthDimensionExponent ?lengthDimensionExponent ;
om:hasSILuminousIntensityDimensionExponent ?luminousIntensityDimensionExponent ;
om:hasSIMassDimensionExponent ?massDimensionExponent ;
om:hasSIThermodynamicTemperatureDimensionExponent ?temperatureDimensionExponent ;
om:hasSITimeDimensionExponent ?timeDimensionExponent
]
] .
}
}
""" ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectQuantityKind> ;
av:associatedDataset <http://qudt.org/> ;
av:definingQuery """
PREFIX qudt: <http://qudt.org/schema/qudt/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?quantityKind ?label ?symbol ?amountOfSubstanceDimensionExponent ?electricCurrentDimensionExponent ?lengthDimensionExponent ?luminousIntensityDimensionExponent ?massDimensionExponent ?temperatureDimensionExponent ?timeDimensionExponent
WHERE {
?quantityKind a qudt:QuantityKind ;
rdfs:label ?label ;
qudt:symbol ?symbol ;
qudt:hasDimensionVector ?dimensionVector .
?dimensionVector a/rdfs:subClassOf* qudt:QuantityKindDimensionVector ;
qudt:dimensionExponentForAmountOfSubstance ?amountOfSubstanceDimensionExponent ;
qudt:dimensionExponentForElectricCurrent ?electricCurrentDimensionExponent ;
qudt:dimensionExponentForLength ?lengthDimensionExponent ;
qudt:dimensionExponentForLuminousIntensity ?luminousIntensityDimensionExponent ;
qudt:dimensionExponentForMass ?massDimensionExponent ;
qudt:dimensionExponentForThermodynamicTemperature ?temperatureDimensionExponent ;
qudt:dimensionExponentForTime ?timeDimensionExponent ;
qudt:dimensionlessExponent ?dimensionlessExponent .
}
""" ;
.
[] a av:AspectPattern ;
av:ofAspect <aspectQuantityKind> ;
av:associatedDataset <http://www.wikidata.org/> ;
av:definingQuery """
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?quantityKind ?label ?symbol ?amountOfSubstanceDimensionExponent ?electricCurrentDimensionExponent ?lengthDimensionExponent ?luminousIntensityDimensionExponent ?massDimensionExponent ?temperatureDimensionExponent ?timeDimensionExponent
WHERE {
{ ?quantityKind rdfs:label ?label } UNION { ?quantityKind skos:altLabel ?label }
OPTIONAL { ?quantityKind p:P7973/pq:P487 ?symbol }
?quantityKind wdt:P4020 ?dimensionLabel .
BIND(STRBEFORE(STRAFTER(STR(?dimensionLabel),"<annotation encoding=\\"application/x-tex\\">{\\\\displaystyle {"),"}</annotation>") AS ?dimensionLabelTex)
BIND(REPLACE(?dimensionLabelTex,"\\\\\\\\mathsf \\\\{\\\\s*(\\\\S+)\\\\s*}}\\\\s*(\\\\{|$)","\\\\\\\\mathsf {$1}}^{1}$2") AS ?dimensionLabelTexWithOnes)
BIND(COALESCE(xsd:integer(STRBEFORE(STRAFTER(?dimensionLabelTexWithOnes,"{N}}^{"),"}")),0) AS ?amountOfSubstanceDimensionExponent)
BIND(COALESCE(xsd:integer(STRBEFORE(STRAFTER(?dimensionLabelTexWithOnes,"{I}}^{"),"}")),0) AS ?electricCurrentDimensionExponent)
BIND(COALESCE(xsd:integer(STRBEFORE(STRAFTER(?dimensionLabelTexWithOnes,"{L}}^{"),"}")),0) AS ?lengthDimensionExponent)
BIND(COALESCE(xsd:integer(STRBEFORE(STRAFTER(?dimensionLabelTexWithOnes,"{J}}^{"),"}")),0) AS ?luminousIntensityDimensionExponent)
BIND(COALESCE(xsd:integer(STRBEFORE(STRAFTER(?dimensionLabelTexWithOnes,"{M}}^{"),"}")),0) AS ?massDimensionExponent)
BIND(COALESCE(xsd:integer(STRBEFORE(STRAFTER(STRAFTER(?dimensionLabelTexWithOnes,"{\\\\Theta"),"{"),"}")),0) AS ?temperatureDimensionExponent)
BIND(COALESCE(xsd:integer(STRBEFORE(STRAFTER(?dimensionLabelTexWithOnes,"{T}}^{"),"}")),0) AS ?timeDimensionExponent)
}
""" ;
av:hasVariablePath
[ a av:VariablePath ; av:propertyPath "<http://www.wikidata.org/prop/direct/P4020>" ; av:variableName "amountOfSubstanceDimensionExponent" ] ,
[ a av:VariablePath ; av:propertyPath "<http://www.wikidata.org/prop/direct/P4020>" ; av:variableName "electricCurrentDimensionExponent" ] ,
[ a av:VariablePath ; av:propertyPath "<http://www.wikidata.org/prop/direct/P4020>" ; av:variableName "lengthDimensionExponent" ] ,
[ a av:VariablePath ; av:propertyPath "<http://www.wikidata.org/prop/direct/P4020>" ; av:variableName "luminousIntensityDimensionExponent" ] ,
[ a av:VariablePath ; av:propertyPath "<http://www.wikidata.org/prop/direct/P4020>" ; av:variableName "massDimensionExponent" ] ,
[ a av:VariablePath ; av:propertyPath "<http://www.wikidata.org/prop/direct/P4020>" ; av:variableName "temperatureDimensionExponent" ] ,
[ a av:VariablePath ; av:propertyPath "<http://www.wikidata.org/prop/direct/P4020>" ; av:variableName "timeDimensionExponent" ] ;
.
<om2Source> a av:Step ;
rdfs:label "Load OM2"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:UrlSourceProcessor ;
av:associatedDataset <http://www.ontology-of-units-of-measure.org/resource/om-2/> ;
av:hasParameter [av:key "url" ; av:value <https://raw.githubusercontent.com/HajoRijgersberg/OM/master/om-2.0.rdf>,
<https://raw.githubusercontent.com/HajoRijgersberg/OM/master/om-2-ucum.ttl> ] ;
.
<qudt2Source> a av:Step ;
rdfs:label "Load QUDT2"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:UrlSourceProcessor ;
av:associatedDataset <http://qudt.org/> ;
av:hasParameter [av:key "url" ; av:value <http://qudt.org/schema/qudt>,
<http://qudt.org/schema/datatype>,
<http://qudt.org/vocab/constant>,
<http://qudt.org/vocab/dimensionvector>,
<http://qudt.org/vocab/quantitykind>,
<http://qudt.org/vocab/sou>,
<http://qudt.org/vocab/unit>,
<http://qudt.org/vocab/prefix>,
<http://qudt.org/vocab/soqk> ] ;
.
<sweet3Source> a av:Step ;
rdfs:label "Load SWEET3"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:UrlSourceProcessor ;
av:associatedDataset <http://sweetontology.net/> ;
av:hasParameter [av:key "url" ; av:value <http://sweetontology.net/reprSciUnits> ] ;
.
<wikidataSource> a av:Step ;
rdfs:label "Load Wikidata"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:SparqlSourceProcessor ;
av:associatedDataset <http://www.wikidata.org/> ;
av:hasParameter
[av:key "service" ; av:value <https://query.wikidata.org/sparql> ] ,
[av:key "query" ; av:value """
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT *
WHERE {
{
# units of measurement
?item wdt:P31/wdt:P279* wd:Q47574 .
FILTER(NOT EXISTS { ?item wdt:P31/wdt:P279* wd:Q8142 }) # without currencies
FILTER(NOT EXISTS { ?item wdt:P31/wdt:P279* wd:Q11639620 }) # without monetary subunits
}
UNION
{
# quantity kind
?item wdt:P4020 [] .
}
}
""" ] ,
[av:key "chunkSize" ; av:value 100 ] ,
[av:key "followUnlimited" ; av:value
<http://www.wikidata.org/prop/direct/P279> ,
<http://www.wikidata.org/prop/statement/value/P2370> ,
<http://www.wikidata.org/prop/P2370>,
<http://www.wikidata.org/prop/P7973> ] ,
[av:key "ignoreInverse" ; av:value
<http://wikiba.se/ontology#quantityUnit>,
<http://www.wikidata.org/prop/qualifier/P642>,
<http://www.wikidata.org/prop/direct/P921>,
<http://www.wikidata.org/prop/statement/P921>,
<http://www.wikidata.org/prop/qualifier/P1013>,
<http://www.wikidata.org/prop/direct/P111>,
<http://www.wikidata.org/prop/statement/P111>,
<http://www.wikidata.org/prop/statement/P31>,
<http://www.wikidata.org/prop/direct/P31>,
<http://www.wikidata.org/prop/statement/P971>,
<http://www.wikidata.org/prop/direct/P971>,
<http://www.wikidata.org/prop/statement/P2670>,
<http://www.wikidata.org/prop/direct/P2670>,
<http://www.wikidata.org/prop/statement/P360>,
<http://www.wikidata.org/prop/direct/P360>,
<http://www.wikidata.org/prop/statement/P4224>,
<http://www.wikidata.org/prop/direct/P4224>,
<http://schema.org/about> ]
.
<om2conversions> a av:Step ;
rdfs:label "OM2 Conversions Closure"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:SparqlConstructProcessor ;
pplan:isPrecededBy <om2Source> ;
av:associatedDataset <http://www.ontology-of-units-of-measure.org/resource/om-2/> ;
av:hasParameter
[av:key "query" ; av:value """
PREFIX om: <http://www.ontology-of-units-of-measure.org/resource/om-2/>
CONSTRUCT {
?unit <tmp:oneEqualsOfBase> ?oneEqualsOfBase
} WHERE {
{
# baseUnits
om:InternationalSystemOfUnits om:hasBaseUnit ?unit .
BIND(1.0 AS ?oneEqualsOfBase)
} UNION {
# fractionUnits
?unit om:hasNumerator ?numerator .
?unit om:hasDenominator ?denominator .
?numerator <tmp:oneEqualsOfBase> ?oneEqualsNumerator .
?denominator <tmp:oneEqualsOfBase> ?oneEqualsDenominator .
BIND(?oneEqualsNumerator / ?oneEqualsDenominator AS ?oneEqualsOfBase)
} UNION {
# prefixUnits
?unit om:hasUnit ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit om:hasPrefix ?prefix .
?prefix om:hasFactor ?prefixFactor .
BIND(?oneEqualsOfReference * ?prefixFactor AS ?oneEqualsOfBase)
} UNION {
# squareUnits
?unit om:hasBase ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit om:hasExponent 2 .
BIND(?oneEqualsOfReference * ?oneEqualsOfReference AS ?oneEqualsOfBase)
} UNION {
# cubicUnits
?unit om:hasBase ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit om:hasExponent 3 .
BIND(?oneEqualsOfReference * ?oneEqualsOfReference * ?oneEqualsOfReference AS ?oneEqualsOfBase)
} UNION {
# reciprocalUnits
?unit om:hasBase ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit om:hasExponent -1 .
BIND(1.0 / ?oneEqualsOfReference AS ?oneEqualsOfBase)
} UNION {
# reciprocalSquareUnits
?unit om:hasBase ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit om:hasExponent -2 .
BIND(1.0 / ( ?oneEqualsOfReference * ?oneEqualsOfReference ) AS ?oneEqualsOfBase)
} UNION {
# reciprocalcubicUnits
?unit om:hasBase ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit om:hasExponent -3 .
BIND(1.0 / ( ?oneEqualsOfReference * ?oneEqualsOfReference * ?oneEqualsOfReference ) AS ?oneEqualsOfBase)
}
}
""" ] ,
[av:key "maxIterations" ; av:value 5 ] ;
.
<sweet3conversions> a av:Step ;
rdfs:label "SWEET3 Conversions Closure"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:SparqlConstructProcessor ;
pplan:isPrecededBy <sweet3Source> ;
av:associatedDataset <http://sweetontology.net/> ;
av:hasParameter
[av:key "query" ; av:value """
PREFIX sorelm: <http://sweetontology.net/relaMath/>
PREFIX sorelsc: <http://sweetontology.net/relaSci/>
PREFIX sorepsu: <http://sweetontology.net/reprSciUnits/>
CONSTRUCT {
?unit <tmp:oneEqualsOfBase> ?oneEqualsOfBase .
?unit <tmp:zeroAtOfBase> ?zeroAtOfBase .
} WHERE {
{
# baseUnits
?unit a sorepsu:BaseUnit .
BIND(1.0 AS ?oneEqualsOfBase)
BIND(0.0 AS ?zeroAtOfBase)
} UNION {
# scaledUnits
?unit a sorepsu:UnitDerivedByScaling .
?unit sorelm:hasScalingNumber ?scalingNumber .
?unit sorelsc:hasBaseUnit ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsReference .
?referenceUnit <tmp:zeroAtOfBase> ?zeroAtOfBase .
BIND(?scalingNumber * ?oneEqualsReference AS ?oneEqualsOfBase)
} UNION {
# shiftedUnits
?unit a sorepsu:UnitDerivedByShifting .
?unit sorelm:hasScalingNumber ?scalingNumber .
?unit sorelm:hasShiftingNumber ?shiftingNumber .
?unit sorelsc:hasBaseUnit ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsReference .
?referenceUnit <tmp:zeroAtOfBase> ?zeroAtReference .
BIND(?scalingNumber * ?oneEqualsReference AS ?oneEqualsOfBase)
BIND(?zeroAtReference + ?shiftingNumber / ?oneEqualsReference AS ?zeroAtOfBase)
} UNION {
# shiftedUnitsWithoutScalingNumber
?unit a sorepsu:UnitDerivedByShifting .
FILTER NOT EXISTS {?unit sorelm:hasScalingNumber ?scalingNumber}
?unit sorelm:hasShiftingNumber ?shiftingNumber .
?unit sorelsc:hasBaseUnit ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfBase .
?referenceUnit <tmp:zeroAtOfBase> ?zeroAtReference .
BIND(?zeroAtReference + ?shiftingNumber / ?oneEqualsReference AS ?zeroAtOfBase)
} UNION {
# squareUnits
?unit a sorepsu:UnitDerivedByRaisingToPower .
?unit sorelsc:hasBaseUnit ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit sorelm:toThePower ?toThePower .
FILTER(?toThePower = 2)
BIND(?oneEqualsOfReference * ?oneEqualsOfReference AS ?oneEqualsOfBase)
} UNION {
# cubicUnits
?unit a sorepsu:UnitDerivedByRaisingToPower .
?unit sorelsc:hasBaseUnit ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit sorelm:toThePower ?toThePower .
FILTER(?toThePower = 3)
BIND(?oneEqualsOfReference * ?oneEqualsOfReference * ?oneEqualsOfReference AS ?oneEqualsOfBase)
} UNION {
# reciprocalUnits
?unit a sorepsu:UnitDerivedByRaisingToPower .
?unit sorelsc:hasBaseUnit ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit sorelm:toThePower ?toThePower .
FILTER(?toThePower = -1)
BIND(1 / ?oneEqualsOfReference AS ?oneEqualsOfBase)
} UNION {
# reciprocalSquareUnits
?unit a sorepsu:UnitDerivedByRaisingToPower .
?unit sorelsc:hasBaseUnit ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit sorelm:toThePower ?toThePower .
FILTER(?toThePower = -2)
BIND(1 / ?oneEqualsOfReference * ?oneEqualsOfReference AS ?oneEqualsOfBase)
} UNION {
# reciprocalcubicUnits
?unit a sorepsu:UnitDerivedByRaisingToPower .
?unit sorelsc:hasBaseUnit ?referenceUnit .
?referenceUnit <tmp:oneEqualsOfBase> ?oneEqualsOfReference .
?unit sorelm:toThePower ?toThePower .
FILTER(?toThePower = -3)
BIND(1 / ?oneEqualsOfReference * ?oneEqualsOfReference * ?oneEqualsOfReference AS ?oneEqualsOfBase)
} UNION {
# productOf2Units
?unit a sorepsu:UnitDefinedByProduct .
?unit sorelm:hasOperand ?referenceUnit1 .
?unit sorelm:hasOperand ?referenceUnit2 .
FILTER(?referenceUnit1 != ?referenceUnit2)
FILTER NOT EXISTS {
?unit sorelm:hasOperand ?referenceUnit3 .
FILTER(?referenceUnit1 != ?referenceUnit3)
FILTER(?referenceUnit2 != ?referenceUnit3)
}
?referenceUnit1 <tmp:oneEqualsOfBase> ?oneEqualsOfReference1 .
?referenceUnit2 <tmp:oneEqualsOfBase> ?oneEqualsOfReference2 .
BIND(?oneEqualsOfReference1 * ?oneEqualsOfReference2 AS ?oneEqualsOfBase)
} UNION {
# productOf3Units
?unit a sorepsu:UnitDefinedByProduct .
?unit sorelm:hasOperand ?referenceUnit1 .
?unit sorelm:hasOperand ?referenceUnit2 .
?unit sorelm:hasOperand ?referenceUnit3 .
FILTER(?referenceUnit1 != ?referenceUnit2)
FILTER(?referenceUnit1 != ?referenceUnit3)
FILTER(?referenceUnit2 != ?referenceUnit3)
FILTER NOT EXISTS {
?unit sorelm:hasOperand ?referenceUnit4 .
FILTER(?referenceUnit1 != ?referenceUnit4)
FILTER(?referenceUnit2 != ?referenceUnit4)
FILTER(?referenceUnit3 != ?referenceUnit4)
}
?referenceUnit1 <tmp:oneEqualsOfBase> ?oneEqualsOfReference1 .
?referenceUnit2 <tmp:oneEqualsOfBase> ?oneEqualsOfReference2 .
?referenceUnit3 <tmp:oneEqualsOfBase> ?oneEqualsOfReference3 .
BIND(?oneEqualsOfReference1 * ?oneEqualsOfReference2 * ?oneEqualsOfReference3 AS ?oneEqualsOfBase)
} UNION {
# productOf4Units
?unit a sorepsu:UnitDefinedByProduct .
?unit sorelm:hasOperand ?referenceUnit1 .
?unit sorelm:hasOperand ?referenceUnit2 .
?unit sorelm:hasOperand ?referenceUnit3 .
?unit sorelm:hasOperand ?referenceUnit4 .
FILTER(?referenceUnit1 != ?referenceUnit2)
FILTER(?referenceUnit1 != ?referenceUnit3)
FILTER(?referenceUnit1 != ?referenceUnit4)
FILTER(?referenceUnit2 != ?referenceUnit3)
FILTER(?referenceUnit2 != ?referenceUnit4)
FILTER(?referenceUnit3 != ?referenceUnit4)
FILTER NOT EXISTS {
?unit sorelm:hasOperand ?referenceUnit5 .
FILTER(?referenceUnit1 != ?referenceUnit5)
FILTER(?referenceUnit2 != ?referenceUnit5)
FILTER(?referenceUnit3 != ?referenceUnit5)
FILTER(?referenceUnit4 != ?referenceUnit5)
}
?referenceUnit1 <tmp:oneEqualsOfBase> ?oneEqualsOfReference1 .
?referenceUnit2 <tmp:oneEqualsOfBase> ?oneEqualsOfReference2 .
?referenceUnit3 <tmp:oneEqualsOfBase> ?oneEqualsOfReference3 .
?referenceUnit4 <tmp:oneEqualsOfBase> ?oneEqualsOfReference4 .
BIND(?oneEqualsOfReference1 * ?oneEqualsOfReference2 * ?oneEqualsOfReference3 * ?oneEqualsOfReference4 AS ?oneEqualsOfBase)
} UNION {
# productOf5Units
?unit a sorepsu:UnitDefinedByProduct .
?unit sorelm:hasOperand ?referenceUnit1 .
?unit sorelm:hasOperand ?referenceUnit2 .
?unit sorelm:hasOperand ?referenceUnit3 .
?unit sorelm:hasOperand ?referenceUnit4 .
?unit sorelm:hasOperand ?referenceUnit5 .
FILTER(?referenceUnit1 != ?referenceUnit2)
FILTER(?referenceUnit1 != ?referenceUnit3)
FILTER(?referenceUnit1 != ?referenceUnit4)
FILTER(?referenceUnit1 != ?referenceUnit5)
FILTER(?referenceUnit2 != ?referenceUnit3)
FILTER(?referenceUnit2 != ?referenceUnit4)
FILTER(?referenceUnit2 != ?referenceUnit5)
FILTER(?referenceUnit3 != ?referenceUnit4)
FILTER(?referenceUnit3 != ?referenceUnit5)
FILTER(?referenceUnit4 != ?referenceUnit5)
FILTER NOT EXISTS {
?unit sorelm:hasOperand ?referenceUnit6 .
FILTER(?referenceUnit1 != ?referenceUnit6)
FILTER(?referenceUnit2 != ?referenceUnit6)
FILTER(?referenceUnit3 != ?referenceUnit6)
FILTER(?referenceUnit4 != ?referenceUnit6)
FILTER(?referenceUnit5 != ?referenceUnit6)
}
?referenceUnit1 <tmp:oneEqualsOfBase> ?oneEqualsOfReference1 .
?referenceUnit2 <tmp:oneEqualsOfBase> ?oneEqualsOfReference2 .
?referenceUnit3 <tmp:oneEqualsOfBase> ?oneEqualsOfReference3 .
?referenceUnit4 <tmp:oneEqualsOfBase> ?oneEqualsOfReference4 .
?referenceUnit5 <tmp:oneEqualsOfBase> ?oneEqualsOfReference5 .
BIND(?oneEqualsOfReference1 * ?oneEqualsOfReference2 * ?oneEqualsOfReference3 * ?oneEqualsOfReference4 * ?oneEqualsOfReference5 AS ?oneEqualsOfBase)
} UNION {
# productOf6Units
?unit a sorepsu:UnitDefinedByProduct .
?unit sorelm:hasOperand ?referenceUnit1 .
?unit sorelm:hasOperand ?referenceUnit2 .
?unit sorelm:hasOperand ?referenceUnit3 .
?unit sorelm:hasOperand ?referenceUnit4 .
?unit sorelm:hasOperand ?referenceUnit5 .
?unit sorelm:hasOperand ?referenceUnit6 .
FILTER(?referenceUnit1 != ?referenceUnit2)
FILTER(?referenceUnit1 != ?referenceUnit3)
FILTER(?referenceUnit1 != ?referenceUnit4)
FILTER(?referenceUnit1 != ?referenceUnit5)
FILTER(?referenceUnit1 != ?referenceUnit6)
FILTER(?referenceUnit2 != ?referenceUnit3)
FILTER(?referenceUnit2 != ?referenceUnit4)
FILTER(?referenceUnit2 != ?referenceUnit5)
FILTER(?referenceUnit2 != ?referenceUnit6)
FILTER(?referenceUnit3 != ?referenceUnit4)
FILTER(?referenceUnit3 != ?referenceUnit5)
FILTER(?referenceUnit3 != ?referenceUnit6)
FILTER(?referenceUnit4 != ?referenceUnit5)
FILTER(?referenceUnit4 != ?referenceUnit6)
FILTER(?referenceUnit5 != ?referenceUnit6)
FILTER NOT EXISTS {
?unit sorelm:hasOperand ?referenceUnit7 .
FILTER(?referenceUnit1 != ?referenceUnit7)
FILTER(?referenceUnit2 != ?referenceUnit7)
FILTER(?referenceUnit3 != ?referenceUnit7)
FILTER(?referenceUnit4 != ?referenceUnit7)
FILTER(?referenceUnit5 != ?referenceUnit7)
FILTER(?referenceUnit6 != ?referenceUnit7)
}
?referenceUnit1 <tmp:oneEqualsOfBase> ?oneEqualsOfReference1 .
?referenceUnit2 <tmp:oneEqualsOfBase> ?oneEqualsOfReference2 .
?referenceUnit3 <tmp:oneEqualsOfBase> ?oneEqualsOfReference3 .
?referenceUnit4 <tmp:oneEqualsOfBase> ?oneEqualsOfReference4 .
?referenceUnit5 <tmp:oneEqualsOfBase> ?oneEqualsOfReference5 .
?referenceUnit6 <tmp:oneEqualsOfBase> ?oneEqualsOfReference6 .
BIND(?oneEqualsOfReference1 * ?oneEqualsOfReference2 * ?oneEqualsOfReference3 * ?oneEqualsOfReference4 * ?oneEqualsOfReference5 * ?oneEqualsOfReference6 AS ?oneEqualsOfBase)
}
}
""" ] ,
[av:key "maxIterations" ; av:value 5 ] ;
.
GRAPH <manualCorrespondences>
{
om:one av:correspondsToResource qudtUnit:UNITLESS, sorepsu:dimensionlessUnit .
om:wattSquareMetre av:correspondsToResource qudtUnit:W-M2 .
qudtUnit:DEG_C av:correspondsToResource sorepsu:degreeC .
qudtUnit:DEG_F av:correspondsToResource sorepsu:degreeF .
sorepsu:MYA av:correspondsToResource sorepsu:millenium .
om:attomolar av:correspondsNotToResource om:attomolePerLitre .
om:barye av:correspondsNotToResource om:decipascal .
om:centimolar av:correspondsNotToResource om:centimolePerLitre .
om:decamolar av:correspondsNotToResource om:decamolePerLitre .
om:decimolar av:correspondsNotToResource om:decimolePerLitre .
om:femtomolar av:correspondsNotToResource om:femtomolePerLitre .
om:gigamolar av:correspondsNotToResource om:gigamolePerLitre .
om:gray av:correspondsNotToResource om:microgray .
om:hectomolar av:correspondsNotToResource om:hectomolePerLitre .
om:kilofarad av:correspondsNotToResource om:kiloweber .
om:kilomolar av:correspondsNotToResource om:kilomolePerLitre .
om:megamolar av:correspondsNotToResource om:megamolePerLitre .
om:metreKilogram av:correspondsNotToResource om:reciprocalGram .
om:micrometre av:correspondsNotToResource om:micron .
om:micromolar av:correspondsNotToResource om:micromolePerLitre .
om:microsievert av:correspondsNotToResource om:sievert .
om:millimolar av:correspondsNotToResource om:millimolePerLitre .
om:molar av:correspondsNotToResource om:molePerLitre .
om:nanomolar av:correspondsNotToResource om:nanomolePerLitre .
om:petamolar av:correspondsNotToResource om:petamolePerLitre .
om:picomolar av:correspondsNotToResource om:picomolePerLitre .
om:teramolar av:correspondsNotToResource om:teramolePerLitre .
om:yoctomolar av:correspondsNotToResource om:yoctomolePerLitre .
om:yottamolar av:correspondsNotToResource om:yottamolePerLitre .
om:zeptomolar av:correspondsNotToResource om:zeptomolePerLitre .
om:zettamolar av:correspondsNotToResource om:zettamolePerLitre .
om:acre-International av:correspondsNotToResource qudtUnit:MI .
om:ampere av:correspondsNotToResource qudtUnit:A_Ab .
om:centiare av:correspondsNotToResource qudtUnit:CentiBAR .
om:centinewton av:correspondsNotToResource qudtUnit:CentiN-M .
om:decinewton av:correspondsNotToResource qudtUnit:DeciN-M .
om:decisiemens av:correspondsNotToResource qudtUnit:DeciS-PER-M .
om:decitesla av:correspondsNotToResource qudtUnit:DeciB .
om:dryPint-US av:correspondsNotToResource qudtUnit:PINT_UK .
om:dryQuart-US av:correspondsNotToResource qudtUnit:QT_UK .
om:exaampere av:correspondsNotToResource qudtUnit:MegaA .
om:fluidOunce-US av:correspondsNotToResource qudtUnit:OZ_VOL_UK .
om:gray av:correspondsNotToResource qudtUnit:MicroGRAY .
om:horsepower-Water av:correspondsNotToResource qudtUnit:HP_Brake .
om:kilofarad av:correspondsNotToResource qudtUnit:KiloBAR .
om:kilogramPerHectare av:correspondsNotToResource qudtUnit:KiloGM-PER-M .
om:kilotonne av:correspondsNotToResource qudtUnit:KiloP .
om:kiloweber av:correspondsNotToResource qudtUnit:KiloBAR .
om:megafarad av:correspondsNotToResource qudtUnit:MegaBAR .
om:megagramPerLitre av:correspondsNotToResource qudtUnit:MegaGM-PER-M3 .
om:micrometre av:correspondsNotToResource qudtUnit:MicroIN .
om:micron av:correspondsNotToResource qudtUnit:MicroIN .
om:micron av:correspondsNotToResource qudtUnit:MicroM .
om:peck-US av:correspondsNotToResource qudtUnit:PK_UK .
om:reciprocalSecond-Time av:correspondsNotToResource qudtUnit:HZ .
om:second-TimePerSquareMetre av:correspondsNotToResource qudtUnit:PER-SEC-M2 .
om:sievert av:correspondsNotToResource qudtUnit:MicroSV .
om:sievert av:correspondsNotToResource qudtUnit:MicroSV-PER-HR .
om:tonne av:correspondsNotToResource qudtUnit:TON_Metric .
om:reciprocalPascalSecond-Time av:correspondsNotToResource sorepsu:perPascal .
om:second-TimePerSquareMetre av:correspondsNotToResource sorepsu:perSecondSquared .
qudtUnit:CAL_IT av:correspondsNotToResource qudtUnit:CAL_IT-PER-GM .
qudtUnit:CAL_TH av:correspondsNotToResource qudtUnit:CAL_TH-PER-GM .
qudtUnit:DWT av:correspondsNotToResource qudtUnit:QT_UK, qudtUnit:QT_US_DRY .
qudtUnit:GAL_UK av:correspondsNotToResource qudtUnit:GAL_US .
qudtUnit:GRAY av:correspondsNotToResource qudtUnit:MicroGRAY .
qudtUnit:GON av:correspondsNotToResource qudtUnit:GR . # see https://github.com/qudt/qudt-public-repo/issues/26#issuecomment-566769784
qudtUnit:HZ av:correspondsNotToResource qudtUnit:PER-SEC .
qudtUnit:K-PER-MIN av:correspondsNotToResource qudtUnit:K-PER-W .
qudtUnit:KiloGM-M-PER-SEC av:correspondsNotToResource qudtUnit:KiloGM-PER-SEC .
qudtUnit:M-K av:correspondsNotToResource qudtUnit:M-PER-K .
qudtUnit:M3-PER-DAY av:correspondsNotToResource qudtUnit:M3-PER-HR .
qudtUnit:MHO_Stat av:correspondsNotToResource qudtUnit:S_Stat .
qudtUnit:MI2 av:correspondsNotToResource qudtUnit:MilliM2 .
qudtUnit:MicroIN av:correspondsNotToResource qudtUnit:MicroM .
qudtUnit:MicroSV av:correspondsNotToResource qudtUnit:MicroSV-PER-HR, qudtUnit:SV .
qudtUnit:OZ-FT av:correspondsNotToResource qudtUnit:OZ-IN .
qudtUnit:OZ_VOL_UK av:correspondsNotToResource qudtUnit:OZ_VOL_US, qudtUnit:OZ_VOL_US-PER-DAY .
qudtUnit:PER-FT3 av:correspondsNotToResource qudtUnit:PER-M3, qudtUnit:PER-MilliM3 .
qudtUnit:PER-L av:correspondsNotToResource qudtUnit:PER-MIN, qudtUnit:PER-MO .
qudtUnit:PER-M av:correspondsNotToResource qudtUnit:PER-WK .
qudtUnit:PINT_UK av:correspondsNotToResource qudtUnit:PINT_US_DRY .
qudtUnit:PINT_US av:correspondsNotToResource qudtUnit:PINT_US-PER-DAY .
qudtUnit:PK_UK av:correspondsNotToResource qudtUnit:PK_US_DRY .
qudtUnit:QT_US av:correspondsNotToResource qudtUnit:QT_US-PER-DAY .
qudtUnit:W-M2 av:correspondsNotToResource qudtUnit:W-PER-FT2 .
qudtUnit:A_Ab av:correspondsNotToResource sorepsu:ampere .
qudtUnit:C_Ab av:correspondsNotToResource sorepsu:coulomb .
qudtUnit:MicroIN av:correspondsNotToResource sorepsu:micron .
qudtUnit:PER-SEC-SR av:correspondsNotToResource sorepsu:perSecondSquared .
qudtUnit:PER-SEC-M2 av:correspondsNotToResource sorepsu:perSecondSquared .
sorepsu:hertz av:correspondsNotToResource sorepsu:perSecond .
sorepsu:micrometer av:correspondsNotToResource sorepsu:micron .
sorepsu:million_km2 av:correspondsNotToResource sorepsu:million_km3 .
om:ThermalConductivity av:correspondsToResource qudtQuantityKind:ThermalConductivity .
om:Reluctance av:correspondsNotToResource qudtQuantityKind:Reflectance .
om:ThermalConductivity av:correspondsNotToResource qudtQuantityKind:ThermalConductance .
om:VolumeFraction av:correspondsNotToResource qudtQuantityKind:VolumeFlowRate .
wd:Q45003 av:correspondsToResource wd:Q5380792 .
wd:Q501267 av:correspondsToResource wd:Q83947659 .
wd:Q105404651 av:correspondsNotToResource om:MagneticField .
wd:Q214881 av:correspondsNotToResource om:CurvatureConstant .
wd:Q899249 av:correspondsNotToResource om:DensityParameter .
wd:Q1068172 av:correspondsNotToResource wd:Q14515278 .
wd:Q11376 av:correspondsNotToResource wd:Q109198760 .
wd:Q164399 av:correspondsNotToResource wd:Q622324 .
wd:Q192027 av:correspondsNotToResource wd:Q549389 .
wd:Q20989 av:correspondsNotToResource wd:Q501267 .
wd:Q20989 av:correspondsNotToResource wd:Q83947659 .
wd:Q317949 av:correspondsNotToResource wd:Q423220 .
wd:Q36253 av:correspondsNotToResource wd:Q2199864 .
wd:Q39297 av:correspondsNotToResource wd:Q164399 .
wd:Q39297 av:correspondsNotToResource wd:Q622324 .
wd:Q41273 av:correspondsNotToResource wd:Q48103 .
wd:Q45003 av:correspondsNotToResource wd:Q204570 .
wd:Q104946 av:correspondsNotToResource qudtQuantityKind:AmountOfSubstanceFractionOfB .
wd:Q105404651 av:correspondsNotToResource qudtQuantityKind:MagneticField .
wd:Q1068172 av:correspondsNotToResource qudtQuantityKind:SoundPressureLevel .
wd:Q108147201 av:correspondsNotToResource qudtQuantityKind:AmountOfSubstanceFractionOfB .
wd:Q109222374 av:correspondsNotToResource qudtQuantityKind:AbsorbedDose .
wd:Q1134348 av:correspondsNotToResource qudtQuantityKind:SoundVolumeVelocity .
wd:Q1253356 av:correspondsNotToResource qudtQuantityKind:RadiantFluence .
wd:Q181155 av:correspondsNotToResource qudtQuantityKind:NumberOfParticles .
wd:Q501267 av:correspondsNotToResource qudtQuantityKind:ElectricFieldStrength .
wd:Q56298294 av:correspondsNotToResource qudtQuantityKind:LinearVelocity .
wd:Q7964839 av:correspondsNotToResource qudtQuantityKind:Action .
}
<presentCorrespondences> a av:Step ;
rdfs:label "Present Correspondences"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:UsePresentMappingProcessor ;
pplan:isPrecededBy <om2conversions>, <qudt2Source>, <sweet3conversions>, <wikidataSource> ;
av:predefinedMetaDataGraph <manualCorrespondences> ;
av:hasParameter
[av:key "aspect" ; av:value <aspectUnit> ] ,
[av:key "variable" ; av:value "sameAs" ] ;
.
<unitMappingUcum> a av:Step ;
rdfs:label "Unit Mapping using UCUM"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:EquivalentValueMappingProcessor ;
pplan:isPrecededBy <presentCorrespondences> ;
av:hasParameter
[av:key "aspect" ; av:value <aspectUnit> ] ,
[av:key "variables" ; av:value "ucum" ] ;
.
<unitComparison> a av:Step ;
rdfs:label "Unit Comparison"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:PropertyComparisonProcessor ;
pplan:isPrecededBy <unitMappingUcum> ;
av:hasParameter
[av:key "aspect" ; av:value <aspectUnit> ] ,
[av:key "languageFilterPatterns" ; av:value "", "en" ] ,
[av:key "allowLangTagSkip" ; av:value true ] ,
[av:key "variables" ; av:value "quantityKind", "symbol", "oneEqualsOfBase", "zeroAtOfBase" ] ;
.
<quantityKindMappingLabel> a av:Step ;
rdfs:label "Quantity Kind Mapping Using Labels"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:JaroWinklerMappingProcessor ;
pplan:isPrecededBy <presentCorrespondences> ;
av:hasParameter
[av:key "threshold" ; av:value 9e-1 ] ,
[av:key "caseSensitive" ; av:value false ] ,
[av:key "aspect" ; av:value <aspectQuantityKind> ] ,
[av:key "variables" ; av:value "label" ] ;
.
<quantityKindComparison> a av:Step ;
rdfs:label "Quantity Kind Comparison"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:PropertyComparisonProcessor ;
pplan:isPrecededBy <quantityKindMappingLabel> ;
av:hasParameter
[av:key "aspect" ; av:value <aspectQuantityKind> ] ,
[av:key "languageFilterPatterns" ; av:value "", "en" ] ,
[av:key "allowLangTagSkip" ; av:value true ] ,
[av:key "variables" ; av:value "symbol", "timeDimensionExponent", "luminousIntensityDimensionExponent", "amountOfSubstanceDimensionExponent", "electricCurrentDimensionExponent", "temperatureDimensionExponent", "massDimensionExponent", "lengthDimensionExponent"#, "dimensionlessExponent"
] ;
.
<completeness> a av:Step;
rdfs:label "Assess Completeness"@en;
pplan:isStepOfPlan <plan> ;
av:processorClass abecto:PopulationComparisonProcessor ;
pplan:isPrecededBy <unitMappingUcum>, <quantityKindMappingLabel> ;
av:hasParameter
[av:key "aspects" ; av:value <aspectUnit>, <aspectQuantityKind> ] ;
.