Code Monkey home page Code Monkey logo

ontology's Introduction

The Anthropological Notation Ontology (ANNO)

build SHACL status License: CC BY 4.0 DOI

ANNO consists of ANNOdc (domain-core) and ANNOds (domain-specific). ANNOdc is connected to the General Formal Ontology (GFO).

Files

The master branch contains the newest versions of ANNOdc and ANNOds. RDF Turtle serializations are available in the dist branch:

  • anno.ttl combination of ANNOdc and ANNOds
  • anno-ols.ttl combination with language tags removed, use this only with OLS 2
  • shacl.ttl SHACL shapes for validation

Releases

Releases have the calendar versioning scheme YY.MM for short year and short month. For example, 23.08 is the state of November 2023 and contains the ontology as https://github.com/annosaxfdm/ontology/releases/download/23.11/anno.ttl. You can also use the dynamic link to the newest version at https://github.com/annosaxfdm/ontology/releases/latest/download/anno.ttl.respectively anno-ols.ttl.

Validation

Install pySHACL and execute the scripts/shacl shell script.

See Also

ontology's People

Contributors

konradhoeffner avatar dependabot[bot] avatar

Stargazers

 avatar

ontology's Issues

anno.ttl syntax errors

$ wget https://github.com/annosaxfdm/ontology/releases/latest/download/anno.ttl
...
$ rapper -i turtle -c anno.ttl
rapper: Parsing URI file:///home/konrad/projekte/rust/rickview/anno.ttl with parser turtle
rapper: Error - URI file:///home/konrad/projekte/rust/rickview/anno.ttl:17407 - syntax error, unexpected ., expecting a or URI literal or QName
rapper: Failed to parse file anno.ttl turtle content
rapper: Parsing returned 22890 triples

anno.ttl in the release is automatically generated by build.yml.
Also happens locally:

ontology$ scripts/combine
rapper: Parsing URI file:///home/konrad/projekte/anno/ontology/annodc.owl with parser rdfxml
rapper: Serializing with serializer ntriples
rapper: Parsing returned 267 triples
rapper: Parsing URI file:///home/konrad/projekte/anno/ontology/annods.owl with parser rdfxml
rapper: Serializing with serializer ntriples
rapper: Parsing returned 29667 triples
rapper: Parsing URI file:///tmp/anno.ttl with parser turtle
rapper: Serializing with serializer turtle
rapper: Parsing returned 29934 triples
ontology$ rapper -i turtle -c dist/anno.ttl
rapper: Parsing URI file:///home/konrad/projekte/anno/ontology/dist/anno.ttl with parser turtle
rapper: Error - URI file:///home/konrad/projekte/anno/ontology/dist/anno.ttl:17407 - syntax error, unexpected ., expecting a or URI literal or QName
rapper: Failed to parse file dist/anno.ttl turtle content
rapper: Parsing returned 22890 triples

The culprit are those entries:

(:Bone
    :BoneCompound
    :BonePart
) .

The strange thing is that anno.ttl is generated by the very same rapper tool that fails to parse its own output:

#!/bin/sh
# Combine annodc.owl and annods.owl and convert it to anno.ttl.
SCRIPT_PATH=`dirname "$0"`
ROOT=`( cd "$SCRIPT_PATH/.." && pwd )`
DIST=$ROOT/dist
mkdir -p $ROOT/dist
rapper -i rdfxml $ROOT/annodc.owl -o ntriples > /tmp/annodc.nt
rapper -i rdfxml $ROOT/annods.owl -o ntriples > /tmp/annods.nt
# workaround for spaces in URIs
cat $SCRIPT_PATH/prefix.ttl /tmp/annodc.nt /tmp/annods.nt \
| sed  "s/\\\u0020/%20/g" \
> /tmp/anno.ttl
# resulting file is valid turtle but does not use prefixes yet
# reconvert to apply prefixes
rapper -i turtle -o turtle /tmp/anno.ttl > $DIST/anno.ttl

choose license

Use dc:license (elements) in the ontology file so that it is shown in OLS as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.