made by pyLODE 2.9.1

Examples Ontology

Metadata

URI
https://example.com
Publisher(s)
None
Creator(s)
Nicholas J. Car Orcid logo
Contributor(s)
Santa Clause
Created
2021-05-05
Modified
2019-10-21
Version Information
0.9
Version URI
https://example.com/0.9
License & Rights
https://creativecommons.org/licenses/by/4.0/
© SURROUND Australia Pty Ltd
Ontology RDF
RDF (turtle)

Description

This ontology contains several simple classes and properties about animals that are defined only to show off pyLODE's ability to represent different forms of example rendering.

Table of Contents

  1. Classes
  2. Object Properties
  3. Datatype Properties
  4. Namespaces
  5. Legend

Overview

Pictures say 1,000 words
Figure 1: Ontology overview

Classes

Creaturec

URI https://example.com#Creature
Description

A Creature is a living animal

Scope Notes

class with link example

Example(s) https://example.com/individuals/creature-x
Restrictions born or hatched datedp exactly 1
Sub-classes Fishc
In domain of born or hatched datedp

Fishc

URI https://example.com#Fish
Description

Fish are aquatic, craniate, gill-bearing animals that lack limbs with digits. They form a sister group to the tunicates, together forming the olfactores. Included in this definition are the living hagfish, lampreys, and cartilaginous and bony fish as well as various extinct related groups. Around 99% of living fish species are ray-finned fish, belonging to the class Actinopterygii, with over 95% belonging to the teleost subgrouping.

Scope Notes

class with example in inline JSON-LD

Example(s)
{
  "@id": "https://example.com#flipper",
  "@type": "https://example.com#Fish",
  "http://www.w3.org/2004/02/skos/core#definition": "Flipper is the fish that lives in Nick's fish tank",
  "http://www.w3.org/2004/02/skos/core#prefLabel": "Flipper the Fish",
  "https://example.com#hasScaleColour": {
    "@id": "http://example-voc.com/concept/Orange"
  },
  "https://example.com#livesInFreshWater": true,
  "https://example.com#livesInSaltWater": false
}

Super-classes Creaturec
Restrictions lives in salt waterdp exactly 1
lives in estuarine waterdp exactly 1
lives in fresh waterdp exactly 1
eatsop min 1
In domain of lives in fresh waterdp
lives in salt waterdp
lives in estuarine waterdp

Fish foodc

URI https://example.com#FishFood
Description

Fish food is food primarily eaten by fish. It may also be eaten by other Creatures too

Scope Notes

class with a local image example

Example(s)
Super-classes Foodc

Foodc

URI https://example.com#Food
Description

Food is consumed by Creatures to give them energy

Scope Notes

class with an external URI example

Example(s) http://fake.com/thing/food-x
Sub-classes Fish foodc
In range of eatsop

Object Properties

eatsop

URI https://example.com#eats
Description

A creature eats a kind of food

Scope Notes

property with two Resource Descriptor example in same file, conforms to this ontology and something else (http://other.com)

Example(s)
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
   xmlns="https://example.com"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
  <rdf:Description rdf:about="file:///Users/nick/Work/rdflib/pyLODE/pylode/examples/examples-ont/y2">
    <rdf:type rdf:resource="https://example.comFood"/>
  </rdf:Description>
  <rdf:Description rdf:about="file:///Users/nick/Work/rdflib/pyLODE/pylode/examples/examples-ont/x2">
    <rdf:type rdf:resource="https://example.comCreature"/>
    <eats rdf:resource="file:///Users/nick/Work/rdflib/pyLODE/pylode/examples/examples-ont/y2"/>
  </rdf:Description>
</rdf:RDF>

Conforms to: https://other.com

<x> a :Creature ;
    :eats <y> ;
.
<y> a :Food .

Conforms to: https://example.com

Range(s) Foodc

has scale colourop

URI https://example.com#hasScaleColour
Description

A colour of the fish's scales. Can have multiple colours.

Scope Notes

property with example in inline HTML

Example(s) scale colour:
  • blue
  • orange
  • white

Range(s) skos:Conceptc

Datatype Properties

born or hatched datedp

URI https://example.com#bornOrHatchedDate
Description

The Gregorian calendar date on which this Creature was born or hatched

Scope Notes

property with example in inline XML

Example(s)
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
   xmlns="https://example.com#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
  <rdf:Description rdf:about="https://example.com#flipper">
    <rdf:type rdf:resource="https://example.com#Fish"/>
    <bornOrHatchedDate rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2020-05-11</bornOrHatchedDate>
  </rdf:Description>
</rdf:RDF>

Domain(s) Creaturec
Range(s) xsd:datec

lives in estuarine waterdp

URI https://example.com#livesInEstuarineWater
Description

True if the fish lives in estuarine water. It may also live in other water

Scope Notes

property with example using Resource Descriptor for inline Markdown

Example(s)

lives in estuarine water: true


Domain(s) Fishc
Range(s) xsd:booleanc

lives in fresh waterdp

URI https://example.com#livesInFreshWater
Description

True if the fish lives in fresh water. It may also live in other water

Scope Notes

property with example in inline RDF

Example(s)
<x> a eggs:Fish ;
    skos:prefLabel "Fish X"@en ;
    eggs:livesInFreshWater true ;
    ...
.

Domain(s) Fishc
Range(s) xsd:booleanc

lives in salt waterdp

URI https://example.com#livesInSaltWater
Description

True if the fish lives in salt water. It may also live in other water

Scope Notes

property with an remote-hosted image example

Example(s)
Domain(s) Fishc
Range(s) xsd:booleanc

Namespaces

default (eggs)
https://example.com#
dcterms
http://purl.org/dc/terms/
orcid
http://orcid.org/
owl
http://www.w3.org/2002/07/owl#
prof
http://www.w3.org/ns/dx/prof/
prov
http://www.w3.org/ns/prov#
rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs
http://www.w3.org/2000/01/rdf-schema#
sdo
https://schema.org/
skos
http://www.w3.org/2004/02/skos/core#
vann
http://purl.org/vocab/vann/
xsd
http://www.w3.org/2001/XMLSchema#

Legend

cClasses
opObject Properties
fpFunctional Properties
dpData Properties
dpAnnotation Properties
pProperties
niNamed Individuals