|
| 1 | +# SPDX-License-Identifier: Apache-2.0 |
| 2 | +# |
| 3 | +# Copyright 2024 The Enola <https://enola.dev> Authors |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | + |
| 17 | +id: https://enola.dev/ontology |
| 18 | +name: Enola |
| 19 | +created_by: https://www.vorburger.ch |
| 20 | +license: ASL |
| 21 | +prefixes: |
| 22 | + enola: https://enola.dev/ |
| 23 | + linkml: https://w3id.org/linkml/ |
| 24 | + # TODO schema: https://schema.org/ |
| 25 | +imports: |
| 26 | + - linkml:types |
| 27 | +default_range: string |
| 28 | +default_prefix: enola |
| 29 | + |
| 30 | +# TODO Shouldn't (can't) [all] slot_uri be automatically inferred?! |
| 31 | + |
| 32 | +types: |
| 33 | + GKG: |
| 34 | + description: |
| 35 | + ID in Google's Public Knowledge Graph (formerly AKA Freebase), see e.g. |
| 36 | + https://developers.google.com/knowledge-graph/; starts without slash, but with 'm' or 'g' following by a slash and |
| 37 | + lower case characters, numbers and underscores. |
| 38 | + uri: https://enola.dev/GKG |
| 39 | + base: string |
| 40 | + examples: |
| 41 | + - value: g/11bwcf511s |
| 42 | + description: Alphabet Inc. |
| 43 | + object: https://g.co/kg/g/11bwcf511s |
| 44 | + |
| 45 | +slots: |
| 46 | + url: |
| 47 | + description: |
| 48 | + URL of this Thing (to be typed into a web browser, for a human to look at HTML). Not to be confused with each |
| 49 | + Thing's IRI Identity! |
| 50 | + # TODO range: GKG # TODO Replace *WRONG* local DataType GKG from initial testing with schema:url, once that works... |
| 51 | + |
| 52 | + wikipedia: |
| 53 | + description: Wikipedia EN page ID (not URL), e.g. 'Wikipedia' (for https://en.wikipedia.org/wiki/Wikipedia) |
| 54 | + slot_uri: https://enola.dev/wikipedia |
| 55 | + pattern: "^[a-zA-Z0-9_]+$" |
| 56 | + # TODO How-to? schema:image <https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg> |
| 57 | + # TODO How-to? schema:url "https://en.wikipedia.org/wiki/{VALUE}"^^enola:IRITemplate |
| 58 | + # for https://docs.enola.dev/models/example.org/templates/ |
| 59 | + |
| 60 | +classes: |
| 61 | + Software: |
| 62 | + description: |
| 63 | + Parent (abstract) Class for 'soft ware', i.e. 'virtual computer stuff' - you can think of but cannot physically |
| 64 | + touch this. |
| 65 | + # TODO enola:wikipedia "Software". # https://en.wikipedia.org/wiki/Software |
| 66 | + |
| 67 | + SoftwareWithURL: |
| 68 | + subclass_of: Software |
| 69 | + description: |
| 70 | + Parent (abstract) Class for a piece of [[Software]] which has a URL that you can type into a web browser to look |
| 71 | + at (the UI of) it. |
| 72 | + slots: |
| 73 | + - url |
0 commit comments