Skip to content

Commit

Permalink
files renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropaulofb committed Oct 3, 2023
1 parent 654f62a commit 903ff9c
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 52 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/code_testing.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
#name: Code testing
#
#on: push
#
#permissions:
# contents: read
#
#jobs:
# build:
#
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ ubuntu-latest, macos-latest, windows-latest ]
# python-version: [ "3.10", "3.11" ]
#
# steps:
#
# - name: Harden Runner
# uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
# with:
# egress-policy: audit
#
# - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
#
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
# with:
# python-version: ${{ matrix.python-version }}
#
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# pwd
# ls .
#
# - name: Testing with pytest
# run: pytest ./validator/tests/test_main.py
name: Code testing

on: push

permissions:
contents: read

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ "3.10", "3.11" ]

steps:

- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
with:
egress-policy: audit

- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pwd
ls .
- name: Testing with pytest
run: pytest ./validator/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from rdflib import URIRef, Graph

from vocabulary_lib.classes.class_outerm import OUTerm
from vocabulary_lib.classes.outerm import OUTerm


class OUElement:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from loguru import logger
from rdflib import Graph, RDF

from vocabulary_lib.classes.class_elements import (
from vocabulary_lib.classes.ouelement import (
OUCardinality,
OUClass,
OUClassView,
Expand All @@ -53,7 +53,7 @@
OUNoteView,
OULiteral,
)
from vocabulary_lib.classes.class_outerm import OUTerm
from vocabulary_lib.classes.outerm import OUTerm


class OUGraph:
Expand Down Expand Up @@ -177,12 +177,12 @@ def __init__(self, ontouml_graph: Graph, include_concrete: bool = True):
elif o == OUTerm.RelationView:
self.list_OURelationView.append(OURelationView(ontouml_graph, s))
else:
logger.warning(
logger.debug(
f"Graph's element {s} of type {o} was not loaded into any OUGraph's list "
f"because it is not an OntoUML element."
)
else:
logger.warning(
logger.debug(
f"Graph's element {s} of type {o} was not loaded into any OUGraph's list "
f"because it is part of the OntoUML's concrete syntax or it is not an OntoUML element."
)
File renamed without changes.
2 changes: 1 addition & 1 deletion vocabulary_lib/constants/const_general.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""This module contains general Python constants related to the OntoUML vocabulary and concepts.
These constants are designed to facilitate working with OntoUML terms and concepts in Python code.
"""
from ..classes.class_outerm import OUTerm
from ..classes.outerm import OUTerm

# List of OntoUML Aggregation Kinds.
OU_AGGREGATION_KINDS = [OUTerm.composite, OUTerm.none, OUTerm.shared]
Expand Down
2 changes: 1 addition & 1 deletion vocabulary_lib/constants/const_st_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Each list represents a specific grouping of stereotypes, providing a convenient way to access.
"""

from ..classes.class_outerm import OUTerm
from ..classes.outerm import OUTerm

# List of stereotypes that define OntoUML classes as base sortals
OU_CLASS_ST_BASE_SORTALS = [OUTerm.historicalRole, OUTerm.phase, OUTerm.role, OUTerm.subkind]
Expand Down
2 changes: 1 addition & 1 deletion vocabulary_lib/constants/const_st_other.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""The `class_st_other` module defines lists of OntoUML Stereotypes that categorize relations and properties.
"""

from vocabulary_lib.classes.class_outerm import OUTerm
from vocabulary_lib.classes.outerm import OUTerm

# List of OntoUML stereotypes associated with relations.
OU_RELATION_STS = [
Expand Down
2 changes: 1 addition & 1 deletion vocabulary_lib/constants/const_term.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from vocabulary_lib.classes.class_outerm import OUTerm
from vocabulary_lib.classes.outerm import OUTerm

ONTOUML_VOCABULARY_TERMS = [
OUTerm.abstract,
Expand Down
2 changes: 1 addition & 1 deletion vocabulary_lib/functions/func_class.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from rdflib import Graph, URIRef

from vocabulary_lib.classes.class_outerm import OUTerm
from vocabulary_lib.classes.outerm import OUTerm


def ou_get_direct_superclasses(ontouml_graph: Graph, ou_class_id: URIRef) -> list[URIRef]:
Expand Down
4 changes: 2 additions & 2 deletions vocabulary_lib/functions/func_load_specific.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from rdflib import Graph, RDF, URIRef

from vocabulary_lib.classes.class_elements import (
from vocabulary_lib.classes.ouelement import (
OUElement,
OUCardinality,
OUClass,
Expand All @@ -24,7 +24,7 @@
OURelationView,
OUText,
)
from vocabulary_lib.classes.class_outerm import OUTerm
from vocabulary_lib.classes.outerm import OUTerm


class InvalidOntoUMLTypeException(Exception):
Expand Down
2 changes: 1 addition & 1 deletion vocabulary_lib/tests/test_class_outerm.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import rdflib

from ..classes.class_outerm import OUTerm
from ..classes.outerm import OUTerm


def test_class_outerm_pos_mapping() -> None:
Expand Down

0 comments on commit 903ff9c

Please sign in to comment.