Difference between revisions of "Office Ontology"
Jump to navigation
Jump to search
(Created page with "{{LLMHint}} = Office Ontology = This page documents a minimal RDF-style ontology for Microsoft Office documents (Word, Excel, PowerPoint) using existing vocabularies where po...") |
|||
| Line 68: | Line 68: | ||
<uml> | <uml> | ||
@startuml | @startuml | ||
| + | hide circle | ||
skinparam classAttributeIconSize 0 | skinparam classAttributeIconSize 0 | ||
Latest revision as of 10:56, 20 May 2025
⚠️ LLM-generated content notice: Parts of this page may have been created or edited with the assistance of a large language model (LLM). The prompts that have been used might be on the page itself, the discussion page or in straight forward cases the prompt was just "Write a mediawiki page on X" with X being the page name. While the content has been reviewed it might still not be accurate or error-free.
Office Ontology
This page documents a minimal RDF-style ontology for Microsoft Office documents (Word, Excel, PowerPoint) using existing vocabularies where possible and extending with custom classes under `office:` namespace.
Namespaces
- `doco:` – Document Components Ontology (Word/PowerPoint structure)
- `csvw:` – CSV on the Web Vocabulary (Excel-style tables)
- `office:` – Custom extension for Office suite concepts
Classes
Common
- `office:OfficeDocument` – Generic superclass for any Office document
Word (TextDocument)
- `office:TextDocument` – Word-style documents
- `doco:Chapter` – Top-level content unit (e.g., chapter in Word)
- `doco:Section` – Section within a chapter
- `doco:Paragraph` – Paragraph within a section
PowerPoint (Presentation)
- `office:Presentation` – PowerPoint file
- `office:Slide` – A single slide
- `doco:Figure` – Diagram or visual element on a slide
Excel (Spreadsheet)
- `office:Spreadsheet` – Excel-style spreadsheet
- `csvw:Table` – A table of data
- `csvw:Row` – A row in a table
- `csvw:Cell` – A cell in a row
Properties
- `office:hasSlide` – Presentation → Slide
- `office:hasTable` – Spreadsheet → Table
- `csvw:row` – Table → Row
- `csvw:cell` – Row → Cell
RDF Representation
@prefix doco: <http://purl.org/spar/doco/> .
@prefix office: <http://example.org/office#> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
office:OfficeDocument a rdfs:Class .
office:TextDocument a rdfs:Class ; rdfs:subClassOf office:OfficeDocument .
doco:Chapter a rdfs:Class ; rdfs:subClassOf office:TextDocument .
doco:Section a rdfs:Class ; rdfs:subClassOf doco:Chapter .
doco:Paragraph a rdfs:Class ; rdfs:subClassOf doco:Section .
office:Presentation a rdfs:Class ; rdfs:subClassOf office:OfficeDocument .
office:Slide a rdfs:Class ; rdfs:subClassOf office:Presentation .
doco:Figure a rdfs:Class ; rdfs:subClassOf office:Slide .
office:Spreadsheet a rdfs:Class ; rdfs:subClassOf office:OfficeDocument .
csvw:Table a rdfs:Class ; rdfs:subClassOf office:Spreadsheet .
csvw:Row a rdfs:Class .
csvw:Cell a rdfs:Class .
office:hasSlide a rdf:Property ; rdfs:domain office:Presentation ; rdfs:range office:Slide .
office:hasTable a rdf:Property ; rdfs:domain office:Spreadsheet ; rdfs:range csvw:Table .
csvw:row a rdf:Property ; rdfs:domain csvw:Table ; rdfs:range csvw:Row .
csvw:cell a rdf:Property ; rdfs:domain csvw:Row ; rdfs:range csvw:Cell .
UML Diagram
