@prefix cq:      <https://carolinaquotes.com/ns#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix skos:    <http://www.w3.org/2004/02/skos/core#> .
@prefix schema:  <https://schema.org/> .
@prefix prov:    <http://www.w3.org/ns/prov#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .


<https://carolinaquotes.com/ns> a owl:Ontology ;
  owl:versionInfo "2.1.0" ;
  dcterms:title "Carolina Quotes vocabulary" ;
  rdfs:comment "Terms for an edited index of quotations from North and South Carolina. A tie has a kind, and a quotation's attestation is separate from its provenance." .

cq:LibraryRecord a owl:Class ;
  rdfs:label "LibraryRecord" ;
  rdfs:comment "A provider catalog record for a work or edition linked to its author." ;
  rdfs:seeAlso schema:CreativeWork .

cq:Person a owl:Class ;
  rdfs:label "Person" ;
  rdfs:comment "A human with a stated relationship to North or South Carolina." ;
  rdfs:seeAlso schema:Person, foaf:Person .

cq:Quotation a owl:Class ;
  rdfs:label "Quotation" ;
  rdfs:comment "Words a person said or wrote, held as a record with its own identifier." ;
  rdfs:seeAlso schema:Quotation .

cq:Attestation a owl:Class ;
  rdfs:label "Attestation" ;
  rdfs:comment "Where the words occurred: the work, its year and locator." ;
  rdfs:seeAlso schema:CreativeWork .

cq:Provenance a owl:Class ;
  rdfs:label "Provenance" ;
  rdfs:comment "How this index came to hold the record. Distinct from the attestation." ;
  rdfs:seeAlso prov:Entity .

cq:Affiliation a owl:Class ;
  rdfs:label "Affiliation" ;
  rdfs:comment "A typed relationship between a person and a place or institution." ;
  rdfs:seeAlso prov:Association .

cq:Saying a owl:Class ;
  rdfs:label "Saying" ;
  rdfs:comment "An expression belonging to the state rather than to a person." ;
  rdfs:seeAlso schema:CreativeWork .

cq:Submission a owl:Class ;
  rdfs:label "Submission" ;
  rdfs:comment "Words sent in by a reader, public only once a person publishes them." ;
  rdfs:seeAlso prov:Entity .

cq:libraryRecord a rdf:Property ;
  rdfs:label "libraryRecord" ;
  rdfs:domain cq:Person ;
  rdfs:range cq:LibraryRecord ;
  rdfs:comment "A catalog record connected through an authority identifier or reviewed author match." .

cq:identityBasis a rdf:Property ;
  rdfs:label "identityBasis" ;
  rdfs:domain cq:LibraryRecord ;
  rdfs:range xsd:string ;
  rdfs:comment "Evidence used to resolve the catalog author to this person." .

cq:accessType a rdf:Property ;
  rdfs:label "accessType" ;
  rdfs:domain cq:LibraryRecord ;
  rdfs:range xsd:string ;
  rdfs:comment "read, preview or catalog, according to provider availability at review." .

cq:stateCode a rdf:Property ;
  rdfs:label "stateCode" ;
  rdfs:domain cq:Affiliation ;
  rdfs:range xsd:string ;
  rdfs:comment "US postal state code: NC for North Carolina or SC for South Carolina. Each affiliation belongs to one state; people may have ties to both." .

cq:standing a rdf:Property ;
  rdfs:label "standing" ;
  rdfs:domain cq:Person ;
  rdfs:range cq:Standing ;
  rdfs:comment "Residential or institutional standing within the Carolinas. Derived from their relations, never asserted directly." .

cq:affiliation a rdf:Property ;
  rdfs:label "affiliation" ;
  rdfs:domain cq:Person ;
  rdfs:range cq:Affiliation ;
  rdfs:comment "A stated reason this person is in the index." .

cq:relation a rdf:Property ;
  rdfs:label "relation" ;
  rdfs:domain cq:Affiliation ;
  rdfs:range cq:Relation ;
  rdfs:comment "The kind of tie: born_in, raised_in, lived_in, died_in, educated_at, taught_at, employed_by, worked_in, held_office, namesake_of." .

cq:target a rdf:Property ;
  rdfs:label "target" ;
  rdfs:domain cq:Affiliation ;
  rdfs:range rdfs:Resource ;
  rdfs:comment "The place or institution the relation points at." .

cq:evidence a rdf:Property ;
  rdfs:label "evidence" ;
  rdfs:domain cq:Affiliation ;
  rdfs:range xsd:string ;
  rdfs:comment "For a tie added by hand where Wikidata is silent: the words in the primary source that support it. The source itself is given as prov:wasDerivedFrom." .

cq:spokenBy a rdf:Property ;
  rdfs:label "spokenBy" ;
  rdfs:domain cq:Quotation ;
  rdfs:range cq:Person ;
  rdfs:comment "The one person a quotation resolves to. Equivalent to schema:creator." .

cq:attestedIn a rdf:Property ;
  rdfs:label "attestedIn" ;
  rdfs:domain cq:Quotation ;
  rdfs:range cq:Attestation ;
  rdfs:comment "Where the words occurred." .

cq:compiledFrom a rdf:Property ;
  rdfs:label "compiledFrom" ;
  rdfs:domain cq:Quotation ;
  rdfs:range cq:Provenance ;
  rdfs:comment "Where this index read them. Equivalent to prov:wasDerivedFrom." .

cq:corpus a rdf:Property ;
  rdfs:label "corpus" ;
  rdfs:domain cq:Provenance ;
  rdfs:range cq:Corpus ;
  rdfs:comment "wikiquote, wikisource, theme, docsouth, curated or submission." .

cq:status a rdf:Property ;
  rdfs:label "status" ;
  rdfs:domain cq:Quotation ;
  rdfs:range cq:Status ;
  rdfs:comment "sourced, attributed, disputed, unsourced or misattributed." .

cq:featured a rdf:Property ;
  rdfs:label "featured" ;
  rdfs:domain cq:Quotation ;
  rdfs:range xsd:boolean ;
  rdfs:comment "Eligible for the edited front page. The index is not filtered by this." .

cq:record a rdf:Property ;
  rdfs:label "record" ;
  rdfs:domain cq:Quotation ;
  rdfs:range xsd:string ;
  rdfs:comment "The stable identifier, of the form CQ-XXXXXXXX." .

cq:Standing a skos:ConceptScheme ; rdfs:label "Standing" .
cq:native a skos:Concept ;
  skos:inScheme cq:Standing ;
  skos:prefLabel "native" ;
  skos:definition "Born or raised in the state named by the affiliation." .
cq:resident a skos:Concept ;
  skos:inScheme cq:Standing ;
  skos:prefLabel "resident" ;
  skos:definition "Lived in the named state, or died there with another tie to corroborate it." .
cq:affiliated a skos:Concept ;
  skos:inScheme cq:Standing ;
  skos:prefLabel "affiliated" ;
  skos:definition "Studied, taught, worked or held office there, only died there, or a settlement there is named for them." .

cq:Status a skos:ConceptScheme ; rdfs:label "Status" .
cq:sourced a skos:Concept ;
  skos:inScheme cq:Status ;
  skos:prefLabel "sourced" ;
  skos:definition "A citation is recorded for where the words occurred." .
cq:attributed a skos:Concept ;
  skos:inScheme cq:Status ;
  skos:prefLabel "attributed" ;
  skos:definition "Credited to this person without a firm citation." .
cq:unsourced a skos:Concept ;
  skos:inScheme cq:Status ;
  skos:prefLabel "unsourced" ;
  skos:definition "Widely repeated, no citation recorded." .
cq:disputed a skos:Concept ;
  skos:inScheme cq:Status ;
  skos:prefLabel "disputed" ;
  skos:definition "The attribution is contested." .
cq:misattributed a skos:Concept ;
  skos:inScheme cq:Status ;
  skos:prefLabel "misattributed" ;
  skos:definition "Commonly credited to this person but not theirs." .

cq:Corpus a skos:ConceptScheme ; rdfs:label "Corpus" .
cq:wikiquote a skos:Concept ;
  skos:inScheme cq:Corpus ;
  skos:prefLabel "wikiquote" ;
  skos:definition "Compiled from a numbered revision of English Wikiquote." .
cq:wikisource a skos:Concept ;
  skos:inScheme cq:Corpus ;
  skos:prefLabel "wikisource" ;
  skos:definition "Compiled from a public domain primary text on Wikisource." .
cq:theme a skos:Concept ;
  skos:inScheme cq:Corpus ;
  skos:prefLabel "theme" ;
  skos:definition "Compiled from a Wikiquote theme page, where the source line names the speaker as a link." .
cq:docsouth a skos:Concept ;
  skos:inScheme cq:Corpus ;
  skos:prefLabel "docsouth" ;
  skos:definition "Compiled from Documenting the American South (UNC), from works stated No Copyright - United States and published before 1929." .
cq:curated a skos:Concept ;
  skos:inScheme cq:Corpus ;
  skos:prefLabel "curated" ;
  skos:definition "Written directly from a primary source, which the record links." .
cq:submission a skos:Concept ;
  skos:inScheme cq:Corpus ;
  skos:prefLabel "submission" ;
  skos:definition "Sent in by a reader and published after review." .
