-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the session and ontology architecture to base it completely on…
… graphs, use RDFLib stores as interfaces for external software (#765) Summary * Drop support for Python 3.6. * Overhaul of ontology entities. All entities are just an interface to a session. * Unified session and ontology. The session can fetch T-Box related entities either from itself or from another session. * The session becomes just a layer on top of an RDFLib graph. Therefore, the session registry, and the neighbor dicts disappear. Everything is now done on the graph. * Replaced vectors by hashable custom class based on numpy arrays. * The wrapper functionality now goes to an RDFLib Store (the interface driver). The driver manages the wrappers. The wrapper developer implements wrappers. There is one single kind of wrapper. * Container implementation. * Change the wrapper so that it is both a session and a container when no root IRI is provided. Let a wrapper be a specific ontology individual. * Wrapper unit tests from a user's perspective. * Update the cuba and city ontologies, Wrapper -> Container. Added more comments. * Allow setting the label of an ontology entity (which includes containers). * Bump OSP-core version to 4.0.0. * Remove `yaml2camelcase.py`. * Transport layer now works at the triple level. * Changed deprecated `MAINTAINER` to `LABEL org.opencontainers.image.authors`. * Reproduce old CUDS containment notion when updating individuals. * Include `annotations` namespace in the emmo installation file. * RDFS "ontologies" are translated to OWL. rdfs:Class are interpreted as owl:Classes, rdf:Property as owl:AnnotationProperty. This is necessary to use vocabularies such as the Dublin Core™ Metadata Initiative vocabularies. * Moved ontology entity catalog from `osp.core.ontology` to `osp.ontology` module. * Moved all user-facing utils to `osp.core.tools` module. * Migrate city to OWL. * Preload required ontologies in ontology sessions. * Use `rdflib-sqlalchemy` instead of the built-in SQL interface. * Delete obsolete schema validation file. * Inverse relationships on the RelationshipSets. * Rebrand to SimPhoNy. * Return added individuals when using `add` with containers for consistency. * Remote interface, folder structure changes and linting. * Adapt SPARQL functionality, reorganize tests. * [pre-commit.ci] pre-commit autoupdate (#772)
- Loading branch information
Showing
232 changed files
with
15,456 additions
and
23,540 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,3 +1,3 @@ | ||
* text=auto eol=lf | ||
*.{cmd,[cC][mM][dD]} text eol=crlf | ||
*.{bat,[bB][aA][tT]} text eol=crlf | ||
*.{bat,[bB][aA][tT]} text eol=crlf |
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ osp/core/java/target | |
osp/core/packageinfo.py | ||
*.jar | ||
*.so | ||
osp/core/java/lib/so/FaCT++ | ||
osp/core/java/lib/so/FaCT++ |
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,23 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
hooks: | ||
- id: check-json | ||
- id: check-yaml | ||
- id: pretty-format-json | ||
args: | ||
- --autofix | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
args: [--profile, black, --filter-files, --line-length, "79"] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
args: [--line-length, "79"] |
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,16 +1,12 @@ | ||
FROM ubuntu:18.04 | ||
MAINTAINER [email protected] | ||
LABEL org.opencontainers.image.authors="[email protected], [email protected], [email protected]" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y python3.7 python3-pip | ||
RUN python3.7 -m pip install --upgrade pip | ||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1 | ||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2 | ||
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 2 | ||
RUN python -m pip install --upgrade pip | ||
|
||
RUN ln -s /usr/bin/python3.7 /usr/bin/python & \ | ||
ln -s /usr/bin/pip3 /usr/bin/pip | ||
|
||
ADD . /simphony/osp-core | ||
WORKDIR /simphony/osp-core | ||
|
||
RUN pip install tox | ||
RUN tox -e py37 | ||
RUN python setup.py install | ||
ADD . /simphony/simphony-osp | ||
RUN pip install /simphony/simphony-osp |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Examples module. | ||
Contains examples showing the basic usage of the SimPhoNy OSP. | ||
""" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.