Skip to content

Instantly share code, notes, and snippets.

@tommorris
Created September 25, 2008 11:11
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 tommorris/12802 to your computer and use it in GitHub Desktop.
Save tommorris/12802 to your computer and use it in GitHub Desktop.
@prefix : <http://tommorris.org/ns/vote#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://purl.org/dc/terms/references> a rdf:Property .
<http://purl.org/dc/terms/subject> a rdf:Property .
sioc:User a rdfs:Class .
sioc:created_at rdfs:domain sioc:Post .
<http://tommorris.org/ns/vote> a owl:Ontology;
owl:imports sioc: .
:AdministrativeVote a owl:Class;
rdfs:comment "A vote or action that brings administrative attention to an item."@en;
rdfs:subClassOf :Vote;
owl:disjointWith :NegativeVote,
:NeutralVote,
:PositiveVote .
:NegativeVote a owl:Class;
rdfs:subClassOf :Vote;
owl:disjointWith :AdministrativeVote,
:NeutralVote,
:PositiveVote .
:NeutralVote a owl:Class;
rdfs:comment "An abstaining, null or indifferent vote."@en;
rdfs:subClassOf :Vote;
owl:disjointWith :AdministrativeVote,
:NegativeVote,
:PositiveVote .
:PositiveVote a owl:Class;
rdfs:subClassOf :Vote;
owl:disjointWith :AdministrativeVote,
:NegativeVote,
:NeutralVote .
:VotablePost a rdfs:Class;
rdfs:subClassOf sioc:Post .
:Vote a owl:Class;
rdfs:subClassOf owl:Thing,
[
a owl:Restriction;
owl:maxCardinality "1"^^xsd:int;
owl:onProperty sioc:created_at ],
[
a owl:Restriction;
owl:maxCardinality "1"^^xsd:int;
owl:onProperty :vote_by ] .
:has_vote a owl:ObjectProperty;
rdfs:range :Vote;
owl:inverseOf :vote_for .
:num_votes a owl:DatatypeProperty;
rdfs:domain :VotablePost;
rdfs:range xsd:int .
:vote_by a owl:ObjectProperty;
rdfs:domain :Vote;
rdfs:range [
a owl:Class;
owl:unionOf (
<http://xmlns.com/foaf/0.1/Agent>
<http://xmlns.com/foaf/0.1/OnlineAccount>
sioc:User ) ] .
:vote_context a owl:ObjectProperty;
rdfs:comment "The context for which a vote is relevant."@en;
rdfs:domain :Vote .
:vote_for a owl:ObjectProperty;
rdfs:comment "The target at whom the vote is targeted: an item, a person (or agent), organization or document."^^xsd:string;
rdfs:domain :Vote;
owl:inverseOf :has_vote .
:vote_value a owl:DatatypeProperty;
rdfs:domain :Vote .
<http://www.owl-ontologies.com/Ontology1222204235.owl#DatatypeProperty_3> rdfs:comment "null"@en,
"The value of the vote."^^xsd:string;
rdfs:range xsd:float .
<http://xmlns.com/foaf/0.1/Agent> a rdfs:Class .
<http://xmlns.com/foaf/0.1/OnlineAccount> a rdfs:Class .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment