Skip to content

Instantly share code, notes, and snippets.

@Richard-Degenne
Created July 27, 2018 15:26
Show Gist options
  • Save Richard-Degenne/a6b9bcea8a8466c1b43d5e4187fb871f to your computer and use it in GitHub Desktop.
Save Richard-Degenne/a6b9bcea8a8466c1b43d5e4187fb871f to your computer and use it in GitHub Desktop.
StackOverflow answer
@prefix : <http://www.example.com#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://www.example.com> .
<http://www.example.com> rdf:type owl:Ontology .
#################################################################
# Object Properties
#################################################################
### http://www.example.com#performs
:performs rdf:type owl:ObjectProperty ;
rdfs:domain :Person ;
rdfs:range :Activity .
#################################################################
# Classes
#################################################################
### http://www.example.com#Activity
:Activity rdf:type owl:Class .
### http://www.example.com#Person
:Person rdf:type owl:Class .
#################################################################
# Individuals
#################################################################
### http://www.example.com#John
:John rdf:type owl:NamedIndividual ,
:Person ;
:performs :Swimming .
### http://www.example.com#Swimming
:Swimming rdf:type owl:NamedIndividual ,
:Activity .
### Generated by the OWL API (version 4.2.8.20170104-2310) https://github.com/owlcs/owlapi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment