@prefix miya: <https://miyapilled.com/ns#> .
@prefix schema: <https://schema.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .


<https://miyapilled.com/ns> a owl:Ontology ;
    rdfs:label "MIYA.EXE lore vocabulary" ;
    rdfs:comment "The typed graph of the floor library: works, concepts, collections, events, authors and Codex entries. Unofficial and Remilia-adjacent." .

miya:Work a owl:Class ;
    rdfs:label "Work" ;
    rdfs:comment "an essay, post, book, archive, artwork or other made thing. Addressed as https://miyapilled.com/id/work/<slug>." ;
    rdfs:subClassOf schema:CreativeWork .

miya:Concept a owl:Class ;
    rdfs:label "Concept" ;
    rdfs:comment "an idea, term or current of thought. Addressed as https://miyapilled.com/id/concept/<slug>." ;
    rdfs:subClassOf skos:Concept .

miya:Collection a owl:Class ;
    rdfs:label "Collection" ;
    rdfs:comment "an NFT or art collection. Addressed as https://miyapilled.com/id/collection/<slug>." ;
    rdfs:subClassOf schema:Collection .

miya:Event a owl:Class ;
    rdfs:label "Event" ;
    rdfs:comment "a rave, exhibition, launch or other dated happening. Addressed as https://miyapilled.com/id/event/<slug>." ;
    rdfs:subClassOf schema:Event .

miya:Author a owl:Class ;
    rdfs:label "Author" ;
    rdfs:comment "a person or group, named only as the public record names them. Addressed as https://miyapilled.com/id/author/<slug>." ;
    rdfs:subClassOf prov:Agent .

miya:CodexEntry a owl:Class ;
    rdfs:label "CodexEntry" ;
    rdfs:comment "a numbered entry of the floor's approved canon. Addressed as https://miyapilled.com/id/codex/<slug>." ;
    rdfs:subClassOf schema:CreativeWork .

miya:cites a owl:ObjectProperty ;
    rdfs:label "cites" ;
    rdfs:comment "the subject refers to the object as a source (codex/work -> codex/work)" ;
    rdfs:subPropertyOf schema:citation .

miya:responds_to a owl:ObjectProperty ;
    rdfs:label "responds_to" ;
    rdfs:comment "the subject was written as an answer to the object (codex/work -> codex/event/work)" ;
    rdfs:subPropertyOf dcterms:relation .

miya:defines a owl:ObjectProperty ;
    rdfs:label "defines" ;
    rdfs:comment "the subject is where the concept is set out or named (codex/work -> concept)" ;
    rdfs:subPropertyOf dcterms:subject .

miya:part_of a owl:ObjectProperty ;
    rdfs:label "part_of" ;
    rdfs:comment "the subject is a piece of the object (author/codex/collection/concept/event/work -> collection/event/work)" ;
    owl:equivalentProperty dcterms:isPartOf .

miya:influenced_by a owl:ObjectProperty ;
    rdfs:label "influenced_by" ;
    rdfs:comment "the subject grew out of or was shaped by the object (author/codex/collection/concept/event/work -> author/codex/collection/concept/event/work)" ;
    rdfs:subPropertyOf prov:wasInfluencedBy .

miya:appears_in a owl:ObjectProperty ;
    rdfs:label "appears_in" ;
    rdfs:comment "the subject is discussed or shown in the object (author/codex/collection/concept/event/work -> codex/event/work)" ;
    rdfs:subPropertyOf schema:subjectOf .

miya:foreshadowed a owl:ObjectProperty ;
    rdfs:label "foreshadowed" ;
    rdfs:comment "the subject, written earlier, anticipated the object (codex/work -> author/codex/collection/concept/event/work)" ;
    rdfs:subPropertyOf dcterms:relation .

miya:canonized_by a owl:ObjectProperty ;
    rdfs:label "canonized_by" ;
    rdfs:comment "the council took the subject into the Codex through the object (author/collection/concept/event/work -> codex)" ;
    rdfs:subPropertyOf dcterms:relation .

miya:created_by a owl:ObjectProperty ;
    rdfs:label "created_by" ;
    rdfs:comment "the object made the subject (codex/collection/event/work -> author)" ;
    owl:equivalentProperty dcterms:creator .

miya:dateText a owl:DatatypeProperty ;
    rdfs:label "dateText" ;
    rdfs:comment "the date as the record writes it" .

miya:fact a owl:DatatypeProperty ;
    rdfs:label "fact" ;
    rdfs:comment "a short dated fact from the record" .

miya:shelf a owl:DatatypeProperty ;
    rdfs:label "shelf" ;
    rdfs:comment "the library shelf this sits on" .

miya:codexNumber a owl:DatatypeProperty ;
    rdfs:label "number" ;
    rdfs:comment "the number of a Codex entry, in order of enactment (roman)" .

miya:layer a owl:ObjectProperty ;
    rdfs:label "layer" ;
    rdfs:comment "What kind of knowing a node or a link is. Links are published as rdf:Statement resources with their own address (https://miyapilled.com/id/link/<id>), their layer and the reason they were filed." ;
    rdfs:range skos:Concept .

miya:Layers a skos:ConceptScheme ;
    rdfs:label "kinds of knowing" .

miya:record a skos:Concept ;
    skos:inScheme miya:Layers ;
    skos:prefLabel "record" ;
    skos:definition "checkable: it links to its source" .

miya:reading a skos:Concept ;
    skos:inScheme miya:Layers ;
    skos:prefLabel "reading" ;
    skos:definition "the floor's interpretation, approved by a person" .

miya:canon a skos:Concept ;
    skos:inScheme miya:Layers ;
    skos:prefLabel "canon" ;
    skos:definition "written and voted in by the council" .

miya:myth a skos:Concept ;
    skos:inScheme miya:Layers ;
    skos:prefLabel "myth" ;
    skos:definition "the floor's own story, told as a story, never history" .
