Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/codespell.yml

This file was deleted.

80 changes: 80 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Docs and release

on:
push:
branches: [ main, master ]
paths: [ docs/current/error.ttl ]
workflow_dispatch:

permissions:
contents: write

jobs:
docs:
uses: SPAROntologies/sparontologies.github.io/.github/workflows/lode.yml@master
with:
ontology: docs/current/error.ttl

metadata:
needs: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}

- uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install rdflib and uv
run: pip install rdflib uv

- name: Copy docs/current to docs/<dcterms:modified>
run: |
date=$(python - docs/current/error.ttl <<'EOF'
import sys
from rdflib import Graph, OWL, RDF, DCTERMS
g = Graph().parse(sys.argv[1])
print(g.value(g.value(None, RDF.type, OWL.Ontology), DCTERMS.modified) or "")
EOF
)
[[ $date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] || { echo "Bad or missing dcterms:modified: '$date'"; exit 1; }
rm -rf "docs/$date"
cp -r docs/current "docs/$date"
sed -i "s/^date-released: .*/date-released: '$date'/" CITATION.cff
echo "Snapshot -> docs/$date"

- name: Set version from owl:versionInfo
run: |
version=$(python - docs/current/error.ttl <<'EOF'
import sys
from rdflib import Graph, OWL, RDF
g = Graph().parse(sys.argv[1])
print(g.value(g.value(None, RDF.type, OWL.Ontology), OWL.versionInfo) or "")
EOF
)
[[ $version =~ ^[0-9A-Za-z.+-]+$ ]] || { echo "Bad or missing owl:versionInfo: '$version'"; exit 1; }
sed -i "s/^version: .*/version: $version/" CITATION.cff
sed -i "0,/^version = .*/s//version = \"$version\"/" pyproject.toml
uv lock
echo "VERSION=$version" >> "$GITHUB_ENV"
echo "Version -> $version"

- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898333+github-actions[bot]@users.noreply.github.com"
git add -A docs CITATION.cff pyproject.toml uv.lock
git diff --cached --quiet || git commit -m "DOCS: add versioned documentation snapshot and update version"
git push

- name: Create release
env:
GH_TOKEN: ${{ github.token }}
run: |
if gh release view "v$VERSION" >/dev/null 2>&1; then
echo "Release v$VERSION already exists, skipping"
else
gh release create "v$VERSION" --title "v$VERSION" --generate-notes --target "$(git rev-parse HEAD)"
fi
19 changes: 3 additions & 16 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,10 @@ name: Ontology Validation

on:
push:
branches: [ master ]
branches: [ main, master ]
pull_request:
branches: [ master ]
branches: [ main, master ]

jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install uv and Python
uses: astral-sh/setup-uv@v3
with:
version: "latest"

- name: Run syntax and FAIR validation
run: uv run main.py
continue-on-error: true
uses: SPAROntologies/sparontologies.github.io/.github/workflows/validation.yml@master
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

* **v1.0.2**:
Added new documentation files to the repository (e.g., the `CITATION.cff` file) and refactored some components (e.g., `main.py` changed into `validate.py`).
* **v1.0.1**:
Added new documentation, including annotation properties (e.g., `bibo:doi`, `schema:codeRepository`, etc.), term properties (e.g., `vann:example`, `vs:term_status`, etc.), exemplary competency questions with their respective SPARQL queries, and a Grafoo diagram.
35 changes: 35 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
cff-version: 1.2.0
title: The Error Ontology
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Silvio
family-names: Peroni
orcid: 'https://orcid.org/0000-0003-0530-4305'
repository-code: 'https://github.com/SPAROntologies/error'
abstract: The Error Ontology is an unit test that allow to produce an inconsistent model if a particular (and incorrect) situation happens.
- error descriptions
- errors
- semantic publishing
license: CC-BY-4.0
version: 1.0.2
date-released: '2026-10-05'
preferred-citation:
type: article
authors:
- family-names: "Ciccarese"
given-names: "Paolo"
orcid: "https://orcid.org/0000-0002-5156-2703"
- family-names: "Peroni"
given-names: "Silvio"
orcid: "https://orcid.org/0000-0003-0530-4305"
doi: "10.3233/SW-130121"
journal: "Semantic Web"
issue: 5
volume: 6
start: 515
end: 529
title: "The Collections Ontology: creating and handling collections in OWL 2 DL frameworks"
year: 2014
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Error Ontology

[![License](https://img.shields.io/github/license/SPAROntologies/error)](LICENSE.md)
[![Release](https://img.shields.io/github/v/release/SPAROntologies/error)](https://github.com/SPAROntologies/error/releases/latest)
[![Tests](https://img.shields.io/github/actions/workflow/status/SPAROntologies/error/validation.yml?label=tests)](https://github.com/SPAROntologies/error/actions/workflows/validation.yml)
[![Documentation](https://img.shields.io/badge/docs-sparontologies.net-blue)](http://www.sparontologies.net/ontologies/error)
[![IRI](https://img.shields.io/badge/IRI-purl.org%2Fspar%2Ferror-blue)](http://purl.org/spar/error)

The **_Error Ontology_** is an unit test that allow to produce an inconsistent model if a particular (and incorrect) situation happens.

**URL:** http://purl.org/spar/error
Expand All @@ -10,6 +16,6 @@ The **_Error Ontology_** is an unit test that allow to produce an inconsistent m

**License:** [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode)

**Cite as:** ...
**Cite as:** Ciccarese, P., & Peroni, S. (2014). The Collections Ontology: creating and handling collections in OWL 2 DL frameworks. Semantic Web, 5(6), 515-529. DOI: https://doi.org/10.3233/SW-130121.

> This is a copy - with a related change of the main URL of the ontology - of the Error Ontology (imported by PWO) and previously available at http://www.essepuntato.it/2009/10/error. It has been imported here in SPAR for guaranteeing its long-term sustainability.
129 changes: 129 additions & 0 deletions docs/2026-10-05/error.graphml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java" xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0" xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
<!--Created by yEd 3.24-->
<key attr.name="Description" attr.type="string" for="graph" id="d0"/>
<key for="port" id="d1" yfiles.type="portgraphics"/>
<key for="port" id="d2" yfiles.type="portgeometry"/>
<key for="port" id="d3" yfiles.type="portuserdata"/>
<key attr.name="url" attr.type="string" for="node" id="d4"/>
<key attr.name="description" attr.type="string" for="node" id="d5"/>
<key for="node" id="d6" yfiles.type="nodegraphics"/>
<key for="graphml" id="d7" yfiles.type="resources"/>
<key attr.name="url" attr.type="string" for="edge" id="d8"/>
<key attr.name="description" attr.type="string" for="edge" id="d9"/>
<key for="edge" id="d10" yfiles.type="edgegraphics"/>
<graph edgedefault="directed" id="G">
<data key="d0"/>
<node id="n0">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="44.0" width="131.96822102864604" x="466.015889485677" y="269.0"/>
<y:Fill color="#FFFF00" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="25.792043685913086" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="c" textColor="#000000" verticalTextPosition="bottom" visible="true" width="77.3121337890625" x="27.328043619791742" xml:space="preserve" y="9.103978157043457">owl:Thing</y:NodeLabel>
<y:Shape type="roundrectangle"/>
</y:ShapeNode>
</data>
</node>
<node id="n1">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="43.0" width="126.0949682107173" x="468.95251589464135" y="451.5"/>
<y:Fill color="#CCFFCC" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="25.792043685913086" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="c" textColor="#000000" verticalTextPosition="bottom" visible="true" width="78.16017150878906" x="23.967398350964118" xml:space="preserve" y="8.603978157043457">xsd:string</y:NodeLabel>
<y:Shape type="parallelogram"/>
</y:ShapeNode>
</data>
</node>
<node id="n2">
<data key="d4" xml:space="preserve"/>
<data key="d5" xml:space="preserve"><![CDATA[UMLNote]]></data>
<data key="d6">
<y:UMLNoteNode>
<y:Geometry height="94.70263671875" width="440.3120435967303" x="627.9841105143232" y="334.898681640625"/>
<y:Fill color="#CCFFFF" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="left" autoSizePolicy="content" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="69.37613105773926" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="c" textColor="#000000" verticalTextPosition="bottom" visible="true" width="398.35272216796875" x="20.97966071438077" xml:space="preserve" y="12.663252830505371">rdfs:domain [ a owl:Restriction ;
owl:cardinality "0"^^xsd:nonNegativeInteger ;
owl:onProperty error:hasError ]</y:NodeLabel>
</y:UMLNoteNode>
</data>
</node>
<node id="n3" yfiles.foldertype="group">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:ProxyAutoBoundsNode>
<y:Realizers active="0">
<y:GroupNode>
<y:Geometry height="145.5983180999756" width="439.4794051783091" x="569.1071109094714" y="546.9857692718506"/>
<y:Fill color="#FFFFFF" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="right" autoSizePolicy="node_width" backgroundColor="#B7B69E" borderDistance="0.0" fontFamily="Dialog" fontSize="15" fontStyle="bold" hasLineColor="false" height="24.430143356323242" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#000000" verticalTextPosition="bottom" visible="true" width="439.4794051783091" x="0.0" xml:space="preserve" y="0.0">Prefixes </y:NodeLabel>
<y:Shape type="rectangle"/>
<y:DropShadow color="#D2D2D2" offsetX="4" offsetY="4"/>
<y:State closed="false" closedHeight="74.509765625" closedWidth="387.8295898437501" innerGraphDisplayEnabled="false"/>
<y:Insets bottom="15" bottomF="15.0" left="15" leftF="15.0" right="15" rightF="15.0" top="15" topF="15.0"/>
<y:BorderInsets bottom="0" bottomF="0.0" left="2" leftF="2.228291286707531" right="0" rightF="0.0" top="0" topF="0.0"/>
</y:GroupNode>
<y:GroupNode>
<y:Geometry height="50.0" width="50.0" x="991.0" y="579.4031372070312"/>
<y:Fill color="#F2F0D8" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="right" autoSizePolicy="node_width" backgroundColor="#B7B69E" borderDistance="0.0" fontFamily="Dialog" fontSize="15" fontStyle="plain" hasLineColor="false" height="24.430143356323242" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#000000" verticalTextPosition="bottom" visible="true" width="61.09037780761719" x="-5.545188903808594" xml:space="preserve" y="0.0">Folder 2</y:NodeLabel>
<y:Shape type="rectangle"/>
<y:DropShadow color="#D2D2D2" offsetX="4" offsetY="4"/>
<y:State closed="true" closedHeight="50.0" closedWidth="50.0" innerGraphDisplayEnabled="false"/>
<y:Insets bottom="5" bottomF="5.0" left="5" leftF="5.0" right="5" rightF="5.0" top="5" topF="5.0"/>
<y:BorderInsets bottom="0" bottomF="0.0" left="0" leftF="0.0" right="0" rightF="0.0" top="0" topF="0.0"/>
</y:GroupNode>
</y:Realizers>
</y:ProxyAutoBoundsNode>
</data>
<graph edgedefault="directed" id="n3:">
<node id="n3::n0">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="22.2421875" width="31.4345703125" x="604.6129137928586" y="620.87890625"/>
<y:Fill hasColor="false" transparent="false"/>
<y:BorderStyle hasColor="false" type="line" width="1.0"/>
<y:NodeLabel alignment="left" autoSizePolicy="content" borderDistance="0.0" fontFamily="Dialog" fontSize="16" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="91.16817474365234" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="r" textColor="#000000" verticalTextPosition="bottom" visible="true" width="49.71208190917969" x="-18.277511596679688" xml:space="preserve" y="-34.46299362182617">error:
owl:
rdfs:
xsd:</y:NodeLabel>
<y:Shape type="rectangle"/>
</y:ShapeNode>
</data>
</node>
<node id="n3::n1">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="22.2421875" width="207.83128065395096" x="728.4145586221332" y="620.87890625"/>
<y:Fill hasColor="false" transparent="false"/>
<y:BorderStyle hasColor="false" type="line" width="1.0"/>
<y:NodeLabel alignment="left" autoSizePolicy="content" borderDistance="0.0" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="91.16817474365234" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="c" textColor="#000000" verticalTextPosition="bottom" visible="true" width="322.51263427734375" x="-57.340676811696426" xml:space="preserve" y="-34.46299362182617">http://www.essepuntato.it/2009/10/error#
http://www.w3.org/2002/07/owl#
http://www.w3.org/2000/01/rdf-schema#
http://www.w3.org/2001/XMLSchema#</y:NodeLabel>
<y:Shape type="rectangle"/>
</y:ShapeNode>
</data>
</node>
</graph>
</node>
<edge id="e0" source="n0" target="n1">
<data key="d10">
<y:PolyLineEdge>
<y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
<y:LineStyle color="#008000" type="dotted" width="1.0"/>
<y:Arrows source="transparent_circle" target="white_delta"/>
<y:EdgeLabel alignment="center" backgroundColor="#FFFFFF" distance="2.0" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasLineColor="false" height="25.792043685913086" horizontalTextPosition="center" iconTextGap="4" modelName="centered" modelPosition="center" preferredPlacement="anywhere" ratio="0.5" textColor="#008000" verticalTextPosition="bottom" visible="true" width="111.74423217773438" x="-55.87211608886719" xml:space="preserve" y="56.35934925079346">error:hasError<y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="absolute" angleRotationOnRightSide="co" distance="-1.0" frozen="true" placement="anywhere" side="anywhere" sideReference="relative_to_edge_flow"/></y:EdgeLabel>
<y:BendStyle smoothed="false"/>
</y:PolyLineEdge>
</data>
</edge>
</graph>
<data key="d7">
<y:Resources/>
</data>
</graphml>
Loading
Loading