Skip to content

Commit

Permalink
Merge pull request #120 from glosis-ld/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rapw3k authored Oct 11, 2023
2 parents 05ec51f + 48d9bf5 commit 239d6ea
Show file tree
Hide file tree
Showing 24 changed files with 1,962 additions and 14,026 deletions.
1,846 changes: 923 additions & 923 deletions csv_codelists/glosis_cl.csv

Large diffs are not rendered by default.

598 changes: 299 additions & 299 deletions csv_codelists/glosis_procedure.csv

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ As example: codelist of physiochemical properties:

One of them: [http://w3id.org/glosis/model/codelists/physioChemicalPropertyCode-Nittot](http://w3id.org/glosis/model/codelists/physioChemicalPropertyCode-Nittot)

### Sources
All the ontology modules, code lists and scripts can be found at the [GloSIS GitHub respository](https://github.com/glosis-ld/glosis)

## Citing

Cite as:
Expand Down
978 changes: 687 additions & 291 deletions glosis_cl.ttl

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions glosis_common.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<http://w3id.org/glosis/model/common>
a owl:Ontology ;
owl:imports ssn: , sosa: ;
owl:versionIRI <http://w3id.org/glosis/model/common/1.2.1> ;
owl:versionInfo "1.2.1" ;
owl:versionIRI <http://w3id.org/glosis/model/common/1.3.0> ;
owl:versionInfo "1.3.0" ;
dct:creator [ schema:affiliation [ foaf:name "PSNC" ] ;
rdfs:seeAlso <http://orcid.org/0000-0003-4289-4922> ;
foaf:name "Raul Palma"
Expand Down
4 changes: 2 additions & 2 deletions glosis_layer_horizon.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<http://w3id.org/glosis/model/layerhorizon>
a owl:Ontology ;
owl:imports ssn: , sosa: , glosis_cl: , glosis_cm: , iso28258: , glosis_u: ;
owl:versionIRI <http://w3id.org/glosis/model/layerhorizon/1.2.1> ;
owl:versionInfo "1.2.1" ;
owl:versionIRI <http://w3id.org/glosis/model/layerhorizon/1.3.0> ;
owl:versionInfo "1.3.0" ;
dct:creator [ schema:affiliation [ foaf:name "PSNC" ] ;
rdfs:seeAlso <http://orcid.org/0000-0003-4289-4922> ;
foaf:name "Raul Palma"
Expand Down
4 changes: 2 additions & 2 deletions glosis_main.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

<http://w3id.org/glosis/model>
a owl:Ontology ;
owl:versionIRI <http://w3id.org/glosis/model/1.2.1> ;
owl:versionInfo "1.2.1" ;
owl:versionIRI <http://w3id.org/glosis/model/1.3.0> ;
owl:versionInfo "1.3.0" ;
dct:creator [ schema:affiliation [ foaf:name "PSNC" ;
rdfs:seeAlso <https://www.psnc.pl/> ] ;
rdfs:seeAlso <http://orcid.org/0000-0003-4289-4922> ;
Expand Down
4 changes: 2 additions & 2 deletions glosis_observation.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<http://w3id.org/glosis/model/observation>
a owl:Ontology ;
owl:imports ssn: , sosa: , iso28258: ;
owl:versionIRI <http://w3id.org/glosis/model/observation/1.2.1> ;
owl:versionInfo "1.2.1" ;
owl:versionIRI <http://w3id.org/glosis/model/observation/1.3.0> ;
owl:versionInfo "1.3.0" ;
dct:creator [ schema:affiliation [ foaf:name "PSNC" ] ;
rdfs:seeAlso <http://orcid.org/0000-0003-4289-4922> ;
foaf:name "Raul Palma"
Expand Down
4 changes: 2 additions & 2 deletions glosis_procedure.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
dct:source "Data model for the Global Soil Information System (GloSIS) v1.0, edited by Tomas Reznik and Katharina Schleidt and Africa Soil Profile Database"@en ;
dct:title "GLOSIS Procedures code list"@en ;
rdfs:comment "This module contains the code lists identifying laboratory processes employed to assess physio-chemical soil properties."@en ;
owl:versionIRI <http://w3id.org/glosis/model/procedure/1.2.1> ;
owl:versionInfo "1.2.1" .
owl:versionIRI <http://w3id.org/glosis/model/procedure/1.3.0> ;
owl:versionInfo "1.3.0" .

glosis_proc:acidityExchangeableProcedure a skos:ConceptScheme ;
rdfs:label "Code list for acidityExchangeable analysis procedures - codelist scheme"@en ;
Expand Down
4 changes: 2 additions & 2 deletions glosis_profile.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<http://w3id.org/glosis/model/profile>
a owl:Ontology ;
owl:imports ssn: , sosa: , glosis_cl: , glosis_cm: , iso28258: ;
owl:versionIRI <http://w3id.org/glosis/model/profile/1.2.1> ;
owl:versionInfo "1.2.1" ;
owl:versionIRI <http://w3id.org/glosis/model/profile/1.3.0> ;
owl:versionInfo "1.3.0" ;
dct:creator [ schema:affiliation [ foaf:name "PSNC" ] ;
rdfs:seeAlso <http://orcid.org/0000-0003-4289-4922> ;
foaf:name "Raul Palma"
Expand Down
4 changes: 2 additions & 2 deletions glosis_siteplot.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<http://w3id.org/glosis/model/siteplot>
a owl:Ontology ;
owl:imports ssn: , sosa: , glosis_cl: , glosis_cm: , iso28258: ;
owl:versionIRI <http://w3id.org/glosis/model/siteplot/1.2.1> ;
owl:versionInfo "1.2.1" ;
owl:versionIRI <http://w3id.org/glosis/model/siteplot/1.3.0> ;
owl:versionInfo "1.3.0" ;
dct:creator [ schema:affiliation [ foaf:name "PSNC" ] ;
rdfs:seeAlso <http://orcid.org/0000-0003-4289-4922> ;
foaf:name "Raul Palma"
Expand Down
4 changes: 2 additions & 2 deletions glosis_surface.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<http://w3id.org/glosis/model/surface>
a owl:Ontology ;
owl:imports ssn: , sosa: , glosis_cl: , glosis_cm: , iso28258: ;
owl:versionIRI <http://w3id.org/glosis/model/surface/1.2.1> ;
owl:versionInfo "1.2.1" ;
owl:versionIRI <http://w3id.org/glosis/model/surface/1.3.0> ;
owl:versionInfo "1.3.0" ;
dct:creator [ schema:affiliation [ foaf:name "PSNC" ] ;
rdfs:seeAlso <http://orcid.org/0000-0003-4289-4922> ;
foaf:name "Raul Palma"
Expand Down
4 changes: 2 additions & 2 deletions glosis_unit.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<http://w3id.org/glosis/model/unit>
a owl:Ontology ;
owl:versionIRI <http://w3id.org/glosis/model/unit/1.2.1> ;
owl:versionInfo "1.2.1" ;
owl:versionIRI <http://w3id.org/glosis/model/unit/1.3.0> ;
owl:versionInfo "1.3.0" ;
dct:creator [ schema:affiliation [ foaf:name "PSNC" ] ;
rdfs:seeAlso <http://orcid.org/0000-0003-4289-4922> ;
foaf:name "Raul Palma"
Expand Down
4 changes: 2 additions & 2 deletions iso28258.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

<http://w3id.org/glosis/model/iso28258/2013>
a owl:Ontology ;
owl:versionIRI <http://w3id.org/glosis/model/iso28258/2013/1.2.1> ;
owl:versionInfo "1.2.1" ;
owl:versionIRI <http://w3id.org/glosis/model/iso28258/2013/1.3.0> ;
owl:versionInfo "1.3.0" ;
dct:creator [ schema:affiliation [ foaf:name "PSNC" ] ;
rdfs:seeAlso <http://orcid.org/0000-0003-4289-4922> ;
foaf:name "Raul Palma"
Expand Down
4 changes: 2 additions & 2 deletions utils/transformer_tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

One should perform the following steps before running the script:

1. ``pip install - r requirements.txt``
1. ``pip install -r requirements.txt``
2. ``git clone https://github.com/Montanaz0r/pytarql.git``
3. cd into cloned repository and run ``pip install .`` to activate setup.py

Expand All @@ -18,4 +18,4 @@ Script can transform in two ways:
```python transform_to_rdf.py data/test.csv data/myquery.rq output.ttl 1.1.1```

```python transform_to_csv.py input.ttl```
(this creates a csv file with corresponding filename in the location of TURTLE file)
(this creates a csv file with corresponding filename in the location of TURTLE file)
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ PREFIX sosa: <http://www.w3.org/ns/sosa/>
PREFIX glosis_cl: <http://w3id.org/glosis/model/codelists/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbprop: <http://dbpedia.org/property/>


CONSTRUCT {
Expand All @@ -28,7 +30,7 @@ CONSTRUCT {
.

### concepts
?c_oneof a skos:Concept; a ?URI2 ;
?c_oneof a skos:Concept; a ?URI2 ; a ?compoundURI ; a ?substanceURI ;
skos:topConceptOf ?top_URI ;
skos:prefLabel ?i_label ;
skos:notation ?i_notation ;
Expand All @@ -37,6 +39,11 @@ CONSTRUCT {
skos:scopeNote ?i_citation ;
skos:inScheme ?URI1 ;
skos:broader ?broaderURI ;
# Chemical substances
dbo:pubchem ?pub_chem_code ;
dbo:inchi ?inchi_code ;
dbprop:inchikey ?inchi_key_code ;
rdfs:seeAlso ?pub_chem_URI ;
.

?broaderURI skos:narrower ?c_oneof .
Expand All @@ -63,4 +70,10 @@ WHERE {
BIND (IF(?parent_instance = '', ?URI1, ?nothing) AS ?top_URI)
BIND (URI(CONCAT('http://w3id.org/glosis/model/codelists/', ?attribute, ?postfix, 'Code', '-', ?parent_instance)) AS ?parentURI)
BIND (IF(?parent_instance != '', ?parentURI, ?nothing) AS ?broaderURI)
BIND (IF(?pub_chem != '', ?pub_chem, ?nothing) AS ?pub_chem_code)
BIND (IF(?pub_chem != '', URI(CONCAT('https://pubchem.ncbi.nlm.nih.gov/compound/', ?pub_chem)), ?nothing) AS ?pub_chem_URI)
BIND (IF(?pub_chem != '', dbo:ChemicalSubstance, ?nothing) AS ?substanceURI)
BIND (IF(?inchi_key != '', ?inchi_key, ?nothing) AS ?inchi_key_code)
BIND (IF(?inchi != '', ?inchi, ?nothing) AS ?inchi_code)
BIND (IF(?pub_chem != '', dbo:ChemicalCompound, ?nothing) AS ?compoundURI)
}
Loading

0 comments on commit 239d6ea

Please sign in to comment.