-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69993ea
commit 5e6c12e
Showing
33 changed files
with
1,401 additions
and
450 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Thanks for considering helping us in making QUDT better. Please review the Issues list for something that catches your interest, or | ||
Thanks for considering helping us in making QUDT better. Please review the Issues list for something that catches your interest, or | ||
see our <a href="https://github.com/qudt/qudt-public-repo/wiki"> Wiki</a> for detailed guidelines on adding content to the models. |
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,65 @@ | ||
name: Format sources and commit to branch | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
format: | ||
# setting the environment on the job is mandatory, otherwise it cannot access environment secrets. | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check write access to repo | ||
run: | | ||
token_login=$(curl -H "Authorization: Bearer ${token}" https://api.github.com/user | jq -r '.login') | ||
echo token login is ${token_login} | ||
echo $(curl -H "Authorization: Bearer ${token}" https://api.github.com/repos/${repo}/collaborators/${token_login}/permission) > result | ||
cat result | jq '.permission == "admin" // .permission == "write"' > /dev/null || ( echo "Token does not have write access to ${repo}" >> ${GITHUB_STEP_SUMMARY}; exit 1) | ||
curl -sS -f -I -H "Authorization: Bearer ${token}" https://api.github.com | grep 'x-oauth-scopes:' | grep 'repo' > /dev/null && exit 0 || echo "Token does not have repo scope on ${repo}" >> ${GITHUB_STEP_SUMMARY} | ||
env: | ||
repo: ${{ github.repository }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Set up java with maven cache | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'maven' | ||
|
||
# configure git | ||
- name: Setup git config | ||
run: | | ||
git config user.name ${{ github.actor }} | ||
git config user.email "<>" | ||
# Check formatting and exit early (with success) if format is ok | ||
- name: Check formatting | ||
run: | | ||
if mvn spotless:check; then | ||
echo "Source was already formatted, nothing was touched." >> $GITHUB_STEP_SUMMARY | ||
exit 0 | ||
else | ||
echo "Sources need formatting, we'll do that now" | ||
fi | ||
# Apply formatting (changelog was touched) | ||
- name: Apply formatting | ||
run: mvn spotless:apply | ||
|
||
# Commit changes | ||
- name: Commit changes | ||
run: | | ||
git add --all | ||
git commit -m "Apply formatting rules" | ||
# Push changes to branch | ||
- name: Push changes to branch | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: git push origin | ||
|
||
# print the summary | ||
- name: Print summary | ||
run: echo "Successfully formatted the source files and made a commit." >> $GITHUB_STEP_SUMMARY |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ QUDT - Quantities, Units, Dimensions and dataTypes - public repository | |
====================================================================== | ||
|
||
## Quick-Start Guide | ||
|
||
There are three ways to bring the QUDT ontology into your environment. | ||
1. Download the latest GitHub Release [here](https://github.com/qudt/qudt-public-repo/releases). | ||
2. Use the resolved graph and instance URIs available [here](https://www.qudt.org/2.1/catalog/qudt-catalog.html). | ||
|
@@ -14,7 +15,6 @@ This QUDT<sup>1</sup> public repository contains the schema and vocabulary sourc | |
|
||
DOI reference for citations: https://doi.org/10.25504/FAIRsharing.d3pqw7 | ||
|
||
|
||
Here is the core design pattern of the QUDT ontology: | ||
|
||
 | ||
|
@@ -37,7 +37,7 @@ Installation instructions | |
[Installing QUDT for Contributors](https://github.com/qudt/qudt-public-repo/wiki/Installing-QUDT-for-Contributors) | ||
|
||
Configuration instructions | ||
----------------------------------------- | ||
-------------------------- | ||
|
||
The QUDT ontology is provided in two forms: OWL and SHACL. By default, the vocabularies are configured to use the SHACL schema. To configure it to use the OWL schema instead, just make the following single change in the file schema/SDHEMA-FACADE_QUDT.ttl. You can see in the imports closure diagram above how all the vocabularies import this single "facade" file to make it easy to switch the ontology. | ||
|
||
|
@@ -77,18 +77,20 @@ Change this line: | |
To: | ||
# imports: http://qudt.org/2.1/collection/usertest | ||
``` | ||
|
||
Currently, the tests in the usertest graph check for references to deprecated instances or properties and recommend the updated instance or property. | ||
|
||
Protege Users | ||
----------------------------- | ||
------------- | ||
|
||
The QUDT ontologies have been tested to load without error in Protege 5.6.4. | ||
|
||
To load QUDT into Protege, choose "Open from URI" from the file menu, and enter http://qudt.org/2.1/vocab/unit | ||
|
||
(The "facade" file that is resolvable on the web (http://qudt.org/2.1/schema/facade/qudt) is already configured to load the OWL schema rather than the SHACL schema, so Protege users will be in the OWL world using this method.) | ||
|
||
Ontology libraries | ||
----------------------------- | ||
------------------ | ||
|
||
Please note that various libraries exhibit different behaviors when importing the QUDT ontology, see this [discussion](https://github.com/qudt/qudt-public-repo/issues/842#issuecomment-1879114604). | ||
|
||
|
@@ -97,18 +99,13 @@ Status | |
|
||
Please see the [New Features and Releases](https://github.com/qudt/qudt-public-repo/discussions/315) topic in the Discussions section for status updates. | ||
|
||
|
||
|
||
<hr/> | ||
<p style="font-size:xx-small;"><sup>1</sup> QUDT.org is a 501(c)(3) not-for-profit organization founded to provide semantic specifications for units of measure, quantity kind, dimensions and data types. QUDT is an advocate for the development and implementation of standards to quantify data expressed in RDF and JSON. Our mission is to improve interoperability of data and the specification of information structures through industry standards for Units of Measure, Quantity Kinds, Dimensions and Data Types. <a href="https://github.com/sponsors/qudt">Sponsorships</a> are greatly appreciated! | ||
|
||
QUDT.org is a member of the World Wide Web Consortium (W3C) | ||
|
||
|
||
|
||
<hr/> | ||
|
||
|
||
Last updated by: Steve Ray ([email protected]) | ||
|
||
Last updated: November 14, 2024 |
Oops, something went wrong.