-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update QUDT and add unit parsing (#101)
- Add `Unit.altSymbols` - Add `Qudt.parseUnit()` - Add unit index structures in `Qudt` to improve performance of unit searches and factor unit matching - Bump java version in github actions
- Loading branch information
1 parent
0dc4e58
commit 00a71eb
Showing
56 changed files
with
35,757 additions
and
84,118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
qudtlib-data-gen/src/main/resources/add-to-quantitykinds.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix qudt: <http://qudt.org/schema/qudt/> . | ||
@prefix unit: <http://qudt.org/vocab/unit/> . | ||
@prefix qkdv: <http://qudt.org/vocab/dimensionvector/> . | ||
@prefix quantitykind: <http://qudt.org/vocab/quantitykind/> . | ||
@prefix sou: <http://qudt.org/vocab/sou/> . | ||
@prefix dcterms: <http://purl.org/dc/terms/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix skos: <http://www.w3.org/2004/02/skos/core#> . | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
@prefix qudt: <http://qudt.org/schema/qudt/> . | ||
@prefix unit: <http://qudt.org/vocab/unit/> . | ||
@prefix sou: <http://qudt.org/vocab/sou/> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix quantitykind: <http://qudt.org/vocab/quantitykind/> . | ||
@prefix prefix: <http://qudt.org/vocab/prefix/> . | ||
|
||
|
7 changes: 7 additions & 0 deletions
7
qudtlib-data-gen/src/main/resources/delete-from-quantitykinds-by-query1_dontfind.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PREFIX qudt: <http://qudt.org/schema/qudt/> | ||
PREFIX unit: <http://qudt.org/vocab/unit/> | ||
prefix quantitykind: <http://qudt.org/vocab/quantitykind/> | ||
DELETE { ?qk ?b ?c . ?d ?e ?qk } | ||
WHERE { { ?qk ?b ?c .} union { ?d ?e ?qk } | ||
VALUES ?qk { quantitykind:VaporPermeability } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
|
7 changes: 0 additions & 7 deletions
7
qudtlib-data-gen/src/main/resources/delete-from-units-by-query1.rq
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
qudtlib-data-gen/src/main/resources/delete-from-units-by-query1_dontfind.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PREFIX qudt: <http://qudt.org/schema/qudt/> | ||
PREFIX unit: <http://qudt.org/vocab/unit/> | ||
prefix quantitykind: <http://qudt.org/vocab/quantitykind/> | ||
DELETE { ?d ?e ?qk } | ||
WHERE { ?d ?e ?qk | ||
VALUES ?qk { quantitykind:VaporPermeability } | ||
} |
10 changes: 10 additions & 0 deletions
10
qudtlib-data-gen/src/main/resources/delete-from-units-by-query2_dontfind.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PREFIX qudt: <http://qudt.org/schema/qudt/> | ||
PREFIX unit: <http://qudt.org/vocab/unit/> | ||
prefix quantitykind: <http://qudt.org/vocab/quantitykind/> | ||
DELETE { ?u qudt:symbol ?symb } | ||
INSERT { ?u qudt:symbol ?repl } | ||
WHERE { | ||
?u qudt:symbol ?symb | ||
filter(regex(?symb, "^1/.+")) | ||
BIND (replace(?symb, "^1", "") as ?repl) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix qudt: <http://qudt.org/schema/qudt/> . | ||
@prefix unit: <http://qudt.org/vocab/unit/> . | ||
@prefix qkdv: <http://qudt.org/vocab/dimensionvector/> . | ||
@prefix qk: <http://qudt.org/vocab/quantitykind/> . | ||
@prefix sou: <http://qudt.org/vocab/sou/> . | ||
@prefix dcterms: <http://purl.org/dc/terms/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix skos: <http://www.w3.org/2004/02/skos/core#> . | ||
@prefix prefix: <http://qudt.org/vocab/prefix/> . | ||
|
||
|
Oops, something went wrong.