Skip to content

Instantly share code, notes, and snippets.

@pero5ar
Created February 11, 2018 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pero5ar/0482ed9a3dd2ddc7c444e890115e4c1c to your computer and use it in GitHub Desktop.
Save pero5ar/0482ed9a3dd2ddc7c444e890115e4c1c to your computer and use it in GitHub Desktop.
WIP - ontology focused on video game genres
@prefix : <http://example.org/VideoGameOntologyExtended#> .
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix dbr: <http://dbpedia.org/resource/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix vgo: <http://purl.org/net/VideoGameOntology#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://example.org/VideoGameOntologyExtended> .
<http://example.org/VideoGameOntologyExtended> rdf:type owl:Ontology ;
owl:imports <http://purl.org/net/VideoGameOntology> .
#################################################################
# Object Properties
#################################################################
### http://example.org/VideoGameOntologyExtended#hasElementsOf
:hasElementsOf rdf:type owl:ObjectProperty ,
owl:ReflexiveProperty ;
rdfs:domain vgo:Genre ;
rdfs:range vgo:Genre .
### http://example.org/VideoGameOntologyExtended#hasExample
:hasExample rdf:type owl:ObjectProperty ;
owl:inverseOf vgo:hasGameGenre .
### http://example.org/VideoGameOntologyExtended#hasNotableExample
:hasNotableExample rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :hasExample ;
rdf:type owl:FunctionalProperty .
### http://example.org/VideoGameOntologyExtended#isSimilarTo
:isSimilarTo rdf:type owl:ObjectProperty ,
owl:SymmetricProperty ,
owl:ReflexiveProperty ;
rdfs:domain vgo:Game ;
rdfs:range vgo:Game .
### http://example.org/VideoGameOntologyExtended#publishedBy
:publishedBy rdf:type owl:ObjectProperty ;
rdfs:domain vgo:Game ;
rdfs:range foaf:Agent .
### http://example.org/VideoGameOntologyExtended#wasInfluencedBy
:wasInfluencedBy rdf:type owl:ObjectProperty ,
owl:AsymmetricProperty ,
owl:TransitiveProperty ;
rdfs:domain vgo:Genre ;
rdfs:range vgo:Genre .
### http://example.org/VideoGameOntologyExtended#worksOnPlatform
:worksOnPlatform rdf:type owl:ObjectProperty ;
rdfs:domain vgo:Game ;
rdfs:range dbo:Software .
### http://purl.org/net/VideoGameOntology#hasGameGenre
vgo:hasGameGenre rdf:type owl:FunctionalProperty .
#################################################################
# Data properties
#################################################################
### http://example.org/VideoGameOntologyExtended#baseSteamPrice
:baseSteamPrice rdf:type owl:DatatypeProperty ;
rdfs:domain vgo:Game ;
rdfs:range xsd:decimal .
### http://example.org/VideoGameOntologyExtended#hasOnlineMultiplayer
:hasOnlineMultiplayer rdf:type owl:DatatypeProperty ;
rdfs:domain vgo:Game ;
rdfs:range xsd:boolean .
### http://example.org/VideoGameOntologyExtended#isMultiplayer
:isMultiplayer rdf:type owl:DatatypeProperty ;
rdfs:domain vgo:Genre ;
rdfs:range xsd:boolean .
#################################################################
# Classes
#################################################################
### http://dbpedia.org/ontology/Software
dbo:Software rdf:type owl:Class .
### http://example.org/VideoGameOntologyExtended#Action
:Action rdf:type owl:Class ;
rdfs:subClassOf vgo:Genre .
### http://example.org/VideoGameOntologyExtended#ActionAdventure
:ActionAdventure rdf:type owl:Class ;
owl:equivalentClass [ owl:intersectionOf ( :Action
:Adventure
) ;
rdf:type owl:Class
] ;
rdfs:subClassOf vgo:Genre .
### http://example.org/VideoGameOntologyExtended#ActionRPG
:ActionRPG rdf:type owl:Class ;
owl:equivalentClass [ owl:intersectionOf ( :Action
:RPG
) ;
rdf:type owl:Class
] ;
rdfs:subClassOf :RPG .
### http://example.org/VideoGameOntologyExtended#Adventure
:Adventure rdf:type owl:Class ;
rdfs:subClassOf vgo:Genre .
### http://example.org/VideoGameOntologyExtended#CMS
:CMS rdf:type owl:Class ;
rdfs:subClassOf :Simulation .
### http://example.org/VideoGameOntologyExtended#CulturalyDefinedGenre
:CulturalyDefinedGenre rdf:type owl:Class ;
owl:equivalentClass [ rdf:type owl:Class ;
owl:unionOf ( :JRPG
:WRPG
)
] ;
rdfs:subClassOf vgo:Genre .
### http://example.org/VideoGameOntologyExtended#JRPG
:JRPG rdf:type owl:Class ;
rdfs:subClassOf :RPG ;
owl:disjointWith :WRPG .
### http://example.org/VideoGameOntologyExtended#LifeSimulation
:LifeSimulation rdf:type owl:Class ;
rdfs:subClassOf :Simulation .
### http://example.org/VideoGameOntologyExtended#MMO
:MMO rdf:type owl:Class ;
rdfs:subClassOf vgo:Genre ,
[ rdf:type owl:Restriction ;
owl:onProperty :isMultiplayer ;
owl:hasValue "true"^^xsd:boolean
] .
### http://example.org/VideoGameOntologyExtended#MMORPG
:MMORPG rdf:type owl:Class ;
owl:equivalentClass [ owl:intersectionOf ( :MMO
:RPG
) ;
rdf:type owl:Class
] ;
rdfs:subClassOf :RPG .
### http://example.org/VideoGameOntologyExtended#RPG
:RPG rdf:type owl:Class ;
rdfs:subClassOf vgo:Genre .
### http://example.org/VideoGameOntologyExtended#RTS
:RTS rdf:type owl:Class ;
rdfs:subClassOf :Strategy ;
owl:disjointWith :TBS .
### http://example.org/VideoGameOntologyExtended#RTT
:RTT rdf:type owl:Class ;
rdfs:subClassOf :Strategy ;
owl:disjointWith :TBT .
### http://example.org/VideoGameOntologyExtended#Racing
:Racing rdf:type owl:Class ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty :hasElementsOf ;
owl:someValuesFrom :VeichleSimulation
] ;
rdfs:subClassOf :Sports .
### http://example.org/VideoGameOntologyExtended#Shooter
:Shooter rdf:type owl:Class ;
rdfs:subClassOf :Action .
### http://example.org/VideoGameOntologyExtended#Simulation
:Simulation rdf:type owl:Class ;
rdfs:subClassOf vgo:Genre .
### http://example.org/VideoGameOntologyExtended#Sports
:Sports rdf:type owl:Class ;
rdfs:subClassOf vgo:Genre .
### http://example.org/VideoGameOntologyExtended#Strategy
:Strategy rdf:type owl:Class ;
rdfs:subClassOf vgo:Genre .
### http://example.org/VideoGameOntologyExtended#TBS
:TBS rdf:type owl:Class ;
rdfs:subClassOf :Strategy .
### http://example.org/VideoGameOntologyExtended#TBT
:TBT rdf:type owl:Class ;
rdfs:subClassOf :Strategy .
### http://example.org/VideoGameOntologyExtended#Tactical
:Tactical rdf:type owl:Class ;
owl:equivalentClass [ rdf:type owl:Class ;
owl:unionOf ( :RTT
:TBT
)
] ;
rdfs:subClassOf :Strategy .
### http://example.org/VideoGameOntologyExtended#VeichleSimulation
:VeichleSimulation rdf:type owl:Class ;
rdfs:subClassOf :Simulation .
### http://example.org/VideoGameOntologyExtended#WRPG
:WRPG rdf:type owl:Class ;
rdfs:subClassOf :RPG .
### http://example.org/VideoGameOntologyExtended#Wargame
:Wargame rdf:type owl:Class ;
rdfs:subClassOf :Strategy .
### 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