Skip to content

Commit

Permalink
Push initial content
Browse files Browse the repository at this point in the history
  • Loading branch information
MBueschelberger committed May 19, 2021
1 parent 07e40c6 commit d149a8e
Show file tree
Hide file tree
Showing 29 changed files with 13,307 additions and 23 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*__pycache__
*.pyc
*.egg
*.egg-info
build
# Remove VS Code preference directory
.vscode/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "EMMO"]
path = EMMO
url = https://github.com/emmo-repo/EMMO.git
1 change: 1 addition & 0 deletions EMMO
Submodule EMMO added at 252855
31 changes: 8 additions & 23 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
BSD 3-Clause License
Copyright © 2021 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. acting on behalf of its Fraunhofer IWM.
Contact: Matthias Büschelberger, Fraunhofer IWM

Copyright (c) 2021, SimPhoNy
All rights reserved.
BSD 3-Clause License

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 changes: 22 additions & 0 deletions emmo_cfd/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os


PATH = os.path.dirname(
os.path.abspath(__file__)
)


def get_file(name, extension=".ttl"):
return parse_dir(PATH, extension)[name]


def parse_dir(path, extension, libary=dict()):
for element in os.listdir(path):
element_path = os.path.join(path, element)
name, ext = os.path.splitext(element)
if os.path.isfile(element_path):
if ext == extension:
libary[name] = element_path
else:
libary = parse_dir(element_path, extension, libary=libary)
return libary
36 changes: 36 additions & 0 deletions emmo_cfd/catalog-v001.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group id="Folder Repository, directory=, recursive=true, Auto-Update=false, version=2" prefer="public" xml:base="">
<uri name="http://emmo.info/emmo/1.0.0-beta" uri="../EMMO/emmo.ttl"/>

<uri name="http://emmo.info/emmo/1.0.0-beta/domain/dt-nmbp-09" uri="./from-dt-nmbp-09.ttl"/>

<uri name="http://emmo.info/emmo/1.0.0-beta/top" uri="../EMMO/top/top.ttl"/>

<uri name="http://emmo.info/emmo/1.0.0-beta/middle" uri="../EMMO/middle/middle.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/chemistry" uri="../EMMO/middle/chemistry.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/perspective" uri="../EMMO/middle/perspective.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/semiotics" uri="../EMMO/middle/semiotics.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/perceptual" uri="../EMMO/middle/perceptual.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/reductionistic" uri="../EMMO/middle/reductionistic.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/ordinal" uri="../EMMO/middle/ordinal.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/holistic" uri="../EMMO/middle/holistic.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/physicalistic" uri="../EMMO/middle/physicalistic.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/math" uri="../EMMO/middle/math.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/properties" uri="../EMMO/middle/properties.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/materials" uri="../EMMO/middle/materials.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/metrology" uri="../EMMO/middle/metrology.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/models" uri="../EMMO/middle/models.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/manufacturing" uri="../EMMO/middle/manufacturing.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/isq" uri="../EMMO/middle/isq.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/siunits" uri="../EMMO/middle/siunits.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/middle/units-extension" uri="../EMMO/middle/units-extension.ttl"/>

<uri name="http://emmo.info/emmo/1.0.0-beta/domain/commonmaterials" uri="../EMMO/domain/commonmaterials.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/domain/commonperceptual" uri="../EMMO/domain/commonperceptual.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/domain/chemicalkinetics" uri="../EMMO/domain/chemicalkinetics.ttl"/>

<uri name="http://emmo.info/emmo/1.0.0-beta/application/meshing" uri="./meshing.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/application/filesystem" uri="./filesystem.ttl"/>
<uri name="http://emmo.info/emmo/1.0.0-beta/application/moldmodelling" uri="./moldmodelling.ttl"/>
</group>
</catalog>
106 changes: 106 additions & 0 deletions emmo_cfd/complexmesh.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
@prefix : <http://emmo.info/emmo#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@base <http://emmo.info/emmo/application/complexmesh> .

<http://emmo.info/emmo/application/complexmesh> rdf:type owl:Ontology ;
owl:versionIRI <http://emmo.info/emmo/1.0.0-beta/application/complexmesh> ;
owl:imports <http://emmo.info/emmo/1.0.0-beta/application/moldmodelling> ;
:EMMO_5525a055_dda5_4556_8b91_f0d22fa676cc """EMMO is released under a Creative Commons license Attribution 4.0 International (CC BY 4.0)
https://creativecommons.org/licenses/by/4.0/legalcode""" .

#################################################################
# Individuals
#################################################################

### http://emmo.info/emmo#array
:array rdf:type owl:NamedIndividual ,
:EMMO_20ff3b34_c864_4936_8955_9345fc0a3b3c ;
:EMMO_60577dea_9019_4537_ac41_80b0fb563d41 :mesh_data .


### http://emmo.info/emmo#complex
:complex rdf:type owl:NamedIndividual ,
:EMMO_e9532295-651f-49f9-a8c2-319360bb909b .


### http://emmo.info/emmo#dimension_one
:dimension_one rdf:type owl:NamedIndividual ,
:EMMO_3227b821_26a5_4c7c_9c01_5c24483e0bd0 .


### http://emmo.info/emmo#fill_data
:fill_data rdf:type owl:NamedIndividual ,
:EMMO_73d05ba0-5afd-41c5-804d-150850170c5b ;
:EMMO_b2282816_b7a3_44c6_b2cb_3feff1ceb7fe :filling_frac .


### http://emmo.info/emmo#filling
:filling rdf:type owl:NamedIndividual ,
:EMMO_5a9244e8-2a62-45e4-871d-5270903b326a ;
:EMMO_60577dea_9019_4537_ac41_80b0fb563d41 :fill_data .


### http://emmo.info/emmo#filling_frac
:filling_frac rdf:type owl:NamedIndividual ,
:EMMO_cf8594d8-0810-46b0-9f40-9918e951d0e0 ;
:EMMO_67fc0a36_8dcb_4ffa_9a43_31074efa3296 :filling_frac_unit ;
:EMMO_8ef3cd6d_ae58_4a8d_9fc0_ad8f49015cd0 :filling_frac_real .


### http://emmo.info/emmo#filling_frac_real
:filling_frac_real rdf:type owl:NamedIndividual ,
:EMMO_18d180e4_5e3e_42f7_820c_e08951223486 ;
:EMMO_faf79f53_749d_40b2_807c_d34244c192f4 "0.75"^^xsd:double .


### http://emmo.info/emmo#filling_frac_unit
:filling_frac_unit rdf:type owl:NamedIndividual ,
:EMMO_9fd1e79d_41d1_44f8_8142_66dbdf0fc7ad ;
:EMMO_bed1d005_b04e_4a90_94cf_02bc678a8569 :dimension_one .


### http://emmo.info/emmo#geo_data
:geo_data rdf:type owl:NamedIndividual ,
:EMMO_19e55b30-3f3f-4e59-a156-d9a71ff6cc77 ;
:EMMO_6ef0c509-e53c-4a51-aae5-c6f789371a9b :complex ;
:EMMO_67fc0a36_8dcb_4ffa_9a43_31074efa3296 :length_unit .


### http://emmo.info/emmo#gmsh
:gmsh rdf:type owl:NamedIndividual ,
:EMMO_bc1b794d-bd0a-4aa9-a2ed-f6edc0633f6b .


### http://emmo.info/emmo#length_dimension
:length_dimension rdf:type owl:NamedIndividual ,
:EMMO_b3600e73_3e05_479d_9714_c041c3acf5cc .


### http://emmo.info/emmo#length_unit
:length_unit rdf:type owl:NamedIndividual ,
:EMMO_7db11dbf_a643_464a_9b56_07eabcc3e9c5 ;
:EMMO_bed1d005_b04e_4a90_94cf_02bc678a8569 :length_dimension ;
:EMMO_23b579e1_8088_45b5_9975_064014026c42 "m"^^xsd:string .


### http://emmo.info/emmo#mesh_data
:mesh_data rdf:type owl:NamedIndividual ,
:EMMO_7964d567-ea14-4cb2-bc3b-a11b52212160 .


### http://emmo.info/emmo#mesh_generation
:mesh_generation rdf:type owl:NamedIndividual ,
:EMMO_0efc8352-1080-4520-baf5-d53e1ca505c0 ;
:EMMO_0090db08_8af6_4744_a9a6_5b2f6e554951 :mesh_data ;
:EMMO_85e3a5ba_9187_45ef_855f_7f129bf48e95 :geo_data ;
:EMMO_c5aae418_1622_4d02_93c5_21159e28e6c1 :fill_data ,
:gmsh .


### Generated by the OWL API (version 4.2.8.20170104-2310) https://github.com/owlcs/owlapi
171 changes: 171 additions & 0 deletions emmo_cfd/cylindermesh.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
@prefix : <http://emmo.info/emmo#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@base <http://emmo.info/emmo/application/cylindermesh> .

<http://emmo.info/emmo/application/cylindermesh> rdf:type owl:Ontology ;
owl:versionIRI <http://emmo.info/emmo/1.0.0-beta/application/cylindermesh> ;
owl:imports <http://emmo.info/emmo/1.0.0-beta/application/moldmodelling> ;
:EMMO_5525a055_dda5_4556_8b91_f0d22fa676cc """EMMO is released under a Creative Commons license Attribution 4.0 International (CC BY 4.0)
https://creativecommons.org/licenses/by/4.0/legalcode""" .

#################################################################
# Individuals
#################################################################

### http://emmo.info/emmo#array
:array rdf:type owl:NamedIndividual ,
:EMMO_20ff3b34_c864_4936_8955_9345fc0a3b3c ;
:EMMO_60577dea_9019_4537_ac41_80b0fb563d41 :mesh_data .


### http://emmo.info/emmo#cylinder
:cylinder rdf:type owl:NamedIndividual ,
:EMMO_1e82f083-f4af-4478-8622-96010ab250dc .


### http://emmo.info/emmo#dimension_one
:dimension_one rdf:type owl:NamedIndividual ,
:EMMO_3227b821_26a5_4c7c_9c01_5c24483e0bd0 .


### http://emmo.info/emmo#fill_data
:fill_data rdf:type owl:NamedIndividual ,
:EMMO_73d05ba0-5afd-41c5-804d-150850170c5b ;
:EMMO_b2282816_b7a3_44c6_b2cb_3feff1ceb7fe :filling_frac .


### http://emmo.info/emmo#filling
:filling rdf:type owl:NamedIndividual ,
:EMMO_5a9244e8-2a62-45e4-871d-5270903b326a ;
:EMMO_60577dea_9019_4537_ac41_80b0fb563d41 :fill_data .


### http://emmo.info/emmo#filling_frac
:filling_frac rdf:type owl:NamedIndividual ,
:EMMO_cf8594d8-0810-46b0-9f40-9918e951d0e0 ;
:EMMO_67fc0a36_8dcb_4ffa_9a43_31074efa3296 :filling_frac_unit ;
:EMMO_8ef3cd6d_ae58_4a8d_9fc0_ad8f49015cd0 :filling_frac_real .


### http://emmo.info/emmo#filling_frac_real
:filling_frac_real rdf:type owl:NamedIndividual ,
:EMMO_18d180e4_5e3e_42f7_820c_e08951223486 ;
:EMMO_faf79f53_749d_40b2_807c_d34244c192f4 "0.75"^^xsd:double .


### http://emmo.info/emmo#filling_frac_unit
:filling_frac_unit rdf:type owl:NamedIndividual ,
:EMMO_9fd1e79d_41d1_44f8_8142_66dbdf0fc7ad ;
:EMMO_bed1d005_b04e_4a90_94cf_02bc678a8569 :dimension_one .


### http://emmo.info/emmo#geo_data
:geo_data rdf:type owl:NamedIndividual ,
:EMMO_19e55b30-3f3f-4e59-a156-d9a71ff6cc77 ;
:EMMO_21f72cf9-a823-45b5-8655-5885a583fe70 :length ;
:EMMO_6ef0c509-e53c-4a51-aae5-c6f789371a9b :cylinder ;
:EMMO_85e73fcb-acd4-467f-bf87-5c82d8813df1 :radius .


### http://emmo.info/emmo#gmsh
:gmsh rdf:type owl:NamedIndividual ,
:EMMO_bc1b794d-bd0a-4aa9-a2ed-f6edc0633f6b .


### http://emmo.info/emmo#length
:length rdf:type owl:NamedIndividual ,
:EMMO_cd2cd0de_e0cc_4ef1_b27e_2e88db027bac ;
:EMMO_67fc0a36_8dcb_4ffa_9a43_31074efa3296 :length_unit ;
:EMMO_8ef3cd6d_ae58_4a8d_9fc0_ad8f49015cd0 :length_real .


### http://emmo.info/emmo#length_dimension
:length_dimension rdf:type owl:NamedIndividual ,
:EMMO_b3600e73_3e05_479d_9714_c041c3acf5cc .


### http://emmo.info/emmo#length_real
:length_real rdf:type owl:NamedIndividual ,
:EMMO_18d180e4_5e3e_42f7_820c_e08951223486 ;
:EMMO_faf79f53_749d_40b2_807c_d34244c192f4 "82.0"^^xsd:double .


### http://emmo.info/emmo#length_unit
:length_unit rdf:type owl:NamedIndividual ,
:EMMO_7db11dbf_a643_464a_9b56_07eabcc3e9c5 ;
:EMMO_bed1d005_b04e_4a90_94cf_02bc678a8569 :length_dimension ;
:EMMO_23b579e1_8088_45b5_9975_064014026c42 "m"^^xsd:string .


### http://emmo.info/emmo#mesh_data
:mesh_data rdf:type owl:NamedIndividual ,
:EMMO_7964d567-ea14-4cb2-bc3b-a11b52212160 ;
:EMMO_b2282816_b7a3_44c6_b2cb_3feff1ceb7fe :resolution .


### http://emmo.info/emmo#mesh_generation
:mesh_generation rdf:type owl:NamedIndividual ,
:EMMO_0efc8352-1080-4520-baf5-d53e1ca505c0 ;
:EMMO_0090db08_8af6_4744_a9a6_5b2f6e554951 :mesh_data ;
:EMMO_85e3a5ba_9187_45ef_855f_7f129bf48e95 :geo_data ;
:EMMO_c5aae418_1622_4d02_93c5_21159e28e6c1 :fill_data ,
:gmsh .


### http://emmo.info/emmo#radius
:radius rdf:type owl:NamedIndividual ,
:EMMO_cd2cd0de_e0cc_4ef1_b27e_2e88db027bac ;
:EMMO_67fc0a36_8dcb_4ffa_9a43_31074efa3296 :radius_unit ;
:EMMO_8ef3cd6d_ae58_4a8d_9fc0_ad8f49015cd0 :radius_real .


### http://emmo.info/emmo#radius_dimension
:radius_dimension rdf:type owl:NamedIndividual ,
:EMMO_b3600e73_3e05_479d_9714_c041c3acf5cc .


### http://emmo.info/emmo#radius_real
:radius_real rdf:type owl:NamedIndividual ,
:EMMO_18d180e4_5e3e_42f7_820c_e08951223486 ;
:EMMO_faf79f53_749d_40b2_807c_d34244c192f4 "25.0"^^xsd:double .


### http://emmo.info/emmo#radius_unit
:radius_unit rdf:type owl:NamedIndividual ,
:EMMO_7db11dbf_a643_464a_9b56_07eabcc3e9c5 ;
:EMMO_bed1d005_b04e_4a90_94cf_02bc678a8569 :radius_dimension ;
:EMMO_23b579e1_8088_45b5_9975_064014026c42 "m"^^xsd:string .


### http://emmo.info/emmo#resolution
:resolution rdf:type owl:NamedIndividual ,
:EMMO_d5f71c44-e9f5-4011-b085-ea862acf266b ;
:EMMO_67fc0a36_8dcb_4ffa_9a43_31074efa3296 :resolution_unit ;
:EMMO_8ef3cd6d_ae58_4a8d_9fc0_ad8f49015cd0 :resolution_real .


### http://emmo.info/emmo#resolution_dimension
:resolution_dimension rdf:type owl:NamedIndividual ,
:EMMO_3afdfb74-6705-41fa-b195-879814e8b70d .


### http://emmo.info/emmo#resolution_real
:resolution_real rdf:type owl:NamedIndividual ,
:EMMO_18d180e4_5e3e_42f7_820c_e08951223486 ;
:EMMO_faf79f53_749d_40b2_807c_d34244c192f4 "10.0"^^xsd:double .


### http://emmo.info/emmo#resolution_unit
:resolution_unit rdf:type owl:NamedIndividual ,
:EMMO_0fb62313-532d-40da-8d3b-617a599c939d ;
:EMMO_bed1d005_b04e_4a90_94cf_02bc678a8569 :resolution_dimension ;
:EMMO_23b579e1_8088_45b5_9975_064014026c42 "\"m/cell\""^^xsd:string .


### Generated by the OWL API (version 4.2.8.20170104-2310) https://github.com/owlcs/owlapi
Loading

0 comments on commit d149a8e

Please sign in to comment.