@prefix schema:  <http://schema.org/> .
@prefix skos:    <http://www.w3.org/2004/02/skos/core#> .
@prefix cvocab:  <http://open-services.net/ns/core#> .
@prefix cc:      <http://creativecommons.org/ns#> .
@prefix dc:      <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix doap:    <http://usefulinc.com/ns/doap#> .
@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
@prefix geo:     <http://www.geonames.org/ontology#> .
@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 wdrs:    <http://www.w3.org/2007/05/powder-s#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix wf:      <http://www.w3.org/2005/01/wf/flow#> .
@prefix gh:      <http://www.openlinksw.com/schemas/github#> .
@prefix xhv:    <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.openlinksw.com/schemas/github#>
  a owl:Ontology ;
  schema:name "OpenLink Github Ontology" ;
  dcterms:title "OpenLink Github Ontology" ;
  schema:comment """Ontology that defines entity and relation types used to describe Github.
  Examples include tasks, projects, usernames etc."""@en  ;
  schema:creator <http://www.openlinksw.com/#this> ;
  wdrs:describedby <http://www.openlinksw.com/schemas/github> ;
  schema:dateCreated "2013-05-18T13:00:00-05:00"^^xsd:dateTime ;
  schema:dateModified "2019-04-24T14:38:00-05:00"^^xsd:dateTime ;
  schema:creator <http://www.openlinksw.com/#this> ;
  owl:versionInfo "1.0.0"^^xsd:string ;
  owl:imports <http://www.w3.org/1999/02/22-rdf-syntax-ns#> , <http://purl.org/dc/terms/> ;
  <http://open.vocab.org/terms/defines>
    gh:Task ,
    gh:Comment ,
    gh:hasLocation ,
    gh:hasFollowers ,
    gh:hasFollowing ,
    gh:hasGists ,
    gh:isHireable ,
    gh:hasPublicRepoCount ,
    gh:hasUID ,
    gh:hasUserName ,
    gh:hasForks ,
    gh:hasDownloads ,
    gh:hasIssues ,
    gh:hasWiki ,
    gh:hasProjectID ,
    gh:hasOpenIssues ,
    gh:hasSize ,
    gh:hasWatchers ,
    gh:hasProject ;
  schema:about
    gh:Task ,
    gh:Comment ,
    gh:hasLocation ,
    gh:hasFollowers ,
    gh:hasFollowing ,
    gh:hasGists ,
    gh:isHireable ,
    gh:hasPublicRepoCount ,
    gh:hasUID ,
    gh:hasUserName ,
    gh:hasForks ,
    gh:hasDownloads ,
    gh:hasIssues ,
    gh:hasWiki ,
    gh:hasProjectID ,
    gh:hasOpenIssues ,
    gh:hasSize ,
    gh:hasWatchers ,
    gh:hasProject .


<http://www.openlinksw.com/DAV/data/turtle/cartridge_ontologies/github.ttl>
  a foaf:Document ;
  schema:name "OpenLink Github Ontology Description Document (Turtle)" ;
  cc:License <http://creativecommons.org/licenses/by-sa/3.0/> ;
  schema:creator <http://www.openlinksw.com/#this> ;
  schema:comment """This is a turtle document that uses Linked Data oriented content to describe an OpenLink ontology for Github"""@en  ;
  foaf:primaryTopic <http://www.openlinksw.com/schemas/github#> ;
  xhv:canonical <http://www.openlinksw.com/schemas/github> ;
  xhv:describes <http://www.openlinksw.com/schemas/github#> ;
  schema:about <http://www.openlinksw.com/schemas/github#> ;
  dcterms:subject <http://www.openlinksw.com/schemas/github#> .

<http://www.openlinksw.com/data/turtle/cartridge_ontologies/github.ttl>
  a foaf:Document ;
  schema:name "OpenLink Github Ontology Description Document (Turtle)" ;
  cc:license <http://creativecommons.org/licenses/by-sa/3.0/> ;
  schema:creator <http://www.openlinksw.com/#this> ;
  schema:comment """This is a turtle document that uses Linked Data oriented content to describe an OpenLink ontology for Github"""@en  ;
  foaf:primaryTopic <http://www.openlinksw.com/schemas/github#> ;
  xhv:canonical <http://www.openlinksw.com/schemas/github> ;
  xhv:describes <http://www.openlinksw.com/schemas/github#> ;
  schema:about <http://www.openlinksw.com/schemas/github#> ;
  dcterms:subject <http://www.openlinksw.com/schemas/github#> .

<http://www.openlinksw.com/schemas/github>
  a foaf:Document ;
  schema:name """OpenLink Github Ontology Description Document"""^^xsd:string ;
  cc:license <http://creativecommons.org/licenses/by-sa/3.0/> ;
  schema:creator <http://www.openlinksw.com/#this> ;
  schema:comment """This is a document that uses Linked Data oriented content to describe OpenLink Github Ontology."""@en  ;
  dcterms:subject <http://www.openlinksw.com/schemas/github#> ;
  foaf:primaryTopic <http://www.openlinksw.com/schemas/github#> ;
  foaf:topic
    gh:Task ,
    gh:Comment ,
    gh:hasLocation ,
    gh:hasFollowers ,
    gh:hasFollowing ,
    gh:hasGists ,
    gh:isHireable ,
    gh:hasPublicRepoCount ,
    gh:hasUID ,
    gh:hasUserName ,
    gh:hasForks ,
    gh:hasDownloads ,
    gh:hasIssues ,
    gh:hasWiki ,
    gh:hasProjectID ,
    gh:hasOpenIssues ,
    gh:hasSize ,
    gh:hasWatchers ,
    gh:hasProject .

# < ------------------- Classes ------------------------>
gh:Task
    a owl:Class ;
    rdfs:subClassOf wf:Task ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "Task" ;
    rdfs:comment """A class for describing tasks"""@en .

gh:Comment
    a owl:Class ;
    rdfs:subClassOf schema:Comment ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "Comment" ;
    rdfs:comment """A class for comments"""@en .

gh:Gist
    a owl:Class ;
    rdfs:subClassOf foaf:Document ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "GitHub Gist" ;
    rdfs:comment """Gist is a simple way to share snippets and pastes with others. All gists are Git repositories, so they are automatically versioned, forkable and usable from Git."""@en .


# < ------------------- Properties ------------------------>
gh:hasLocation
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasLocation" ;
    skos:altLabel "location" ;
    rdfs:comment """Github user's normative location"""@en ;
    rdfs:domain foaf:Agent ;
    rdfs:range xsd:string ;
    rdfs:subPropertyOf geo:name .

gh:hasFollowers
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasFollowers" ;
    skos:altLabel "followers" ;
    rdfs:comment """Number of this user's followers"""@en ;
    rdfs:domain foaf:Agent ;
    rdfs:range xsd:integer .

gh:hasFollowing
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasFollowing" ;
    skos:altLabel "following" ;
    rdfs:comment """Number of users being followed"""@en ;
    rdfs:domain foaf:Agent ;
    rdfs:range xsd:integer .

gh:hasGists
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasGists" ;
    skos:altLabel "gists" ;
    rdfs:comment """Number of public gists"""@en ;
    rdfs:domain foaf:Agent ;
    rdfs:range xsd:integer .

gh:isHireable
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "isHireable" ;
    skos:altLabel "hireable" ;
    rdfs:comment """Whether the current user is hireable"""@en ;
    rdfs:domain foaf:Agent ;
    rdfs:range xsd:boolean .

gh:hasPublicRepoCount
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasPublicRepoCount" ;
    skos:altLabel "repositories count" ;
    rdfs:comment """Number of public repositories"""@en ;
    rdfs:domain foaf:Agent ;
    rdfs:range xsd:integer .

gh:hasUID
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasUID" ;
    skos:altLabel "uid" ;
    rdfs:comment """Github UserID"""@en ;
    rdfs:domain foaf:Agent ;
    rdfs:range xsd:integer .

gh:hasUserName
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasUserName" ;
    skos:altLabel "username" ;
    rdfs:comment """Github username"""@en ;
    rdfs:domain foaf:Agent ;
    rdfs:range xsd:string .

gh:hasForks
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasForks" ;
    skos:altLabel "forks" ;
    rdfs:comment """Number of forks"""@en ;
    rdfs:domain doap:Project ;
    rdfs:range xsd:integer .

gh:hasDownloads
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasDownloads" ;
    skos:altLabel "downloads" ;
    rdfs:comment """Whether the current project has been downloaded"""@en ;
    rdfs:domain doap:Project ;
    rdfs:range xsd:boolean .

gh:hasIssues
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasIssues" ;
    skos:altLabel "issues" ;
    rdfs:comment """Whether there are bugs reported against the project"""@en ;
    rdfs:domain doap:Project ;
    rdfs:range xsd:boolean .

gh:hasWiki
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasWiki" ;
    skos:altLabel "wiki" ;
    rdfs:comment """Whether the project has a wiki"""@en ;
    rdfs:domain doap:Project ;
    rdfs:range xsd:boolean .

gh:hasProjectID
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasProjectID" ;
    skos:altLabel "Github project ID" ;
    rdfs:comment """Github project ID"""@en ;
    rdfs:domain doap:Project ;
    rdfs:range xsd:integer .

gh:hasOpenIssues
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasOpenIssues" ;
    skos:altLabel "open issues" ;
    rdfs:comment """Number of unresolved issues"""@en ;
    rdfs:domain doap:Project ;
    rdfs:range xsd:integer .

gh:hasSize
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasSize" ;
    skos:altLabel "size" ;
    rdfs:comment """A measure of the size of a project"""@en ;
    rdfs:domain doap:Project ;
    rdfs:range xsd:integer .

gh:hasWatchers
    a owl:DatatypeProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasWatchers" ;
    skos:altLabel "watchers" ;
    rdfs:comment """Number of users watching the project"""@en ;
    rdfs:domain doap:Project ;
    rdfs:range xsd:integer .

gh:hasProject
    a owl:ObjectProperty , rdf:Property ;
    rdfs:isDefinedBy <http://www.openlinksw.com/schemas/github#> ;
    rdfs:label "hasProject" ;
    skos:altLabel "owns project" ;
    rdfs:comment """Relates a Github user to a DOAP project"""@en ;
    rdfs:domain foaf:Agent ;
    rdfs:range doap:Project .


