Category:OSW725a3cf5458f4daea86615fcbd0029f8: Difference between revisions

Install package: OSW Ontology
No edit summary
Tag: Metadata slot edit
(Install package: OSW Ontology)
jsonschema
Line 3: Line 3:
         "/wiki/Category:Category?action=raw\u0026slot=jsonschema",
         "/wiki/Category:Category?action=raw\u0026slot=jsonschema",
         {
         {
            "owl": "http://www.w3.org/2002/07/owl#",
            "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
            "xsd": "http://www.w3.org/2001/XMLSchema#",
            "iri": {
                "@id": "@id"
            },
            "label": {
                "@id": "rdfs:label"
            },
            "altLabel": {
                "@id": "skos:altLabel"
            },
            "text": {
                "@id": "@value"
            },
            "lang": {
                "@id": "@language"
            },
            "disjointUnionOf": "owl:disjointUnionOf",
            "disjointWith": "owl:disjointWith",
            "equivalentClass": "owl:equivalentClass",
            "unionOf": {
                "@id": "owl:unionOf",
                "@container": "@list",
                "@type": "@id"
            },
            "comment": "rdfs:comment",
            "isDefinedBy": "rdfs:isDefinedBy",
            "seeAlso": "rdfs:seeAlso",
            "on_property": {
                "@id": "owl:onProperty",
                "@type": "@id"
            },
            "some_values_from": {
                "@id": "owl:someValuesFrom",
                "@type": "@id"
            },
            "domain": {
                "@id": "rdfs:domain",
                "@type": "@id"
            },
            "range": {
                "@id": "rdfs:range",
                "@type": "@id"
            },
            "subproperty_of": {
                "@id": "rdfs:subPropertyOf",
                "@type": "@id"
            },
            "iri*": "Property:Equivalent_URI",
             "restrictions": "rdfs:subClassOf",
             "restrictions": "rdfs:subClassOf",
             "on_property": "owl:onProperty",
            "restrictions*": "Property:HasRestriction",
             "all_values_from ": "owl:allValuesFrom",
             "on_property*": "Property:HasProperty",
             "some_values_from ": "owl:someValuesFrom",
             "all_values_from": "owl:allValuesFrom",
             "has_value ": "owl:hasValue",
            "all_values_from*": "Property:HasObject",
             "max_cardinality ": "owl:maxCardinality",
             "some_values_from*": "Property:HasObject",
             "min_cardinality ": "owl:minCardinality",
             "has_value": "owl:hasValue",
             "cardinality ": "owl:cardinality"
            "has_value*": "Property:HasValue",
             "max_cardinality": "owl:maxCardinality",
             "min_cardinality": "owl:minCardinality",
             "cardinality": "owl:cardinality",
            "ontologies": {
                "@id": "Property:IsPartOf",
                "@type": "@id"
            }
         }
         }
     ],
     ],
Line 20: Line 77:
     "type": "object",
     "type": "object",
     "uuid": "725a3cf5-458f-4dae-a866-15fcbd0029f8",
     "uuid": "725a3cf5-458f-4dae-a866-15fcbd0029f8",
    "$id": "https://opensemantic.world/OSW725a3cf5458f4daea86615fcbd0029f8/0.1.0",
     "title": "OwlClass",
     "title": "OwlClass",
     "title*": {
     "title*": {
Line 28: Line 86:
     "required": [
     "required": [
         "type"
         "type"
    ],
    "defaultProperties": [
        "ontologies",
        "restrictions"
     ],
     ],
     "properties": {
     "properties": {
Line 34: Line 96:
                 "Category:OSW725a3cf5458f4daea86615fcbd0029f8"
                 "Category:OSW725a3cf5458f4daea86615fcbd0029f8"
             ]
             ]
        },
        "subclass_of": {
            "$comment": "OwlThing",
            "default": [
                "Category:OSW379d5a1589c74c82bc0de47938264d00"
            ]
        },
        "ontologies": {
            "type": "array",
            "title": "Ontologies",
            "description": "Ontologies that contain this term",
            "items": {
                "type": "string",
                "format": "autocomplete",
                "$comment": "range is OwlOntology",
                "range": "Category:OSW662db0a2ad0946148422245f84e82f64",
                "title": "Ontology"
            }
        },
        "imported_from": {
            "type": "string",
            "description": "A prefixed IRI defining this entry as a imported term. In OSW the prefix must be a registered imported ontology.",
            "title": "Imported from",
            "example": "schema:Person"
         },
         },
         "restrictions": {
         "restrictions": {
Line 39: Line 125:
             "description": "Relations of this class to other classes, instances or literals (OWL Restrictions)",
             "description": "Relations of this class to other classes, instances or literals (OWL Restrictions)",
             "type": "array",
             "type": "array",
            "eval_template": [
                {
                    "type": "mustache-wikitext",
                    "mode": "render",
                    "value": "{{#restrictions}}[[{{{on_property}}}]] [[:{{{some_values_from}}}{{{all_values_from}}}]]\u003Cbr\u003E{{/restrictions}}"
                }
            ],
             "items": {
             "items": {
                 "type": "object",
                 "type": "object",
                 "title": "Relation",
                 "title": "Relation",
                 "required": [
                 "required": [
                    "uuid",
                     "rdf_type",
                     "rdf_type",
                     "on_property"
                     "on_property"
                 ],
                 ],
                 "properties": {
                 "properties": {
                    "uuid": {
                        "title": "UUID",
                        "type": "string",
                        "format": "uuid",
                        "options": {
                            "hidden": true
                        }
                    },
                     "rdf_type": {
                     "rdf_type": {
                         "type": "string",
                         "type": "string",
Line 56: Line 158:
                     "on_property": {
                     "on_property": {
                         "type": "string",
                         "type": "string",
                        "format": "autocomplete",
                        "range": "Category:ObjectProperty",
                         "title": "Property",
                         "title": "Property",
                         "description": "Property to use in this relation"
                         "description": "Property to use in this relation"
Line 61: Line 165:
                     "some_values_from": {
                     "some_values_from": {
                         "type": "string",
                         "type": "string",
                        "format": "autocomplete",
                        "$comment": "Range is other OWL classes",
                        "range": "Category:OSW725a3cf5458f4daea86615fcbd0029f8",
                         "title": "Value (Class)",
                         "title": "Value (Class)",
                         "description": "Another class which is the value of this relation. Other classes for the same property are allowed."
                         "description": "Another class which is the value of this relation. Other classes for the same property are allowed.",
                        "options": {
                            "autocomplete": {
                                "$comment": "There's no simple query yet for any subclassof OwlClass, so we query 5 level explicit",
                                "query": "[[HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]] OR [[SubClassOf.HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]] OR [[SubClassOf.SubClassOf.HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]]OR [[SubClassOf.SubClassOf.HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]]OR [[SubClassOf.SubClassOf.SubClassOf.SubClassOf.HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]]"
                            }
                        }
                     },
                     },
                     "all_values_from": {
                     "all_values_from": {
                         "type": "string",
                         "type": "string",
                        "format": "autocomplete",
                        "$comment": "Range is other OWL classes",
                        "range": "Category:OSW725a3cf5458f4daea86615fcbd0029f8",
                         "title": "Value (Class, strict)",
                         "title": "Value (Class, strict)",
                         "description": "Another class which is the value of this relation. No other classes for the same property are allowed."
                         "description": "Another class which is the value of this relation. No other classes for the same property are allowed.",
                        "options": {
                            "autocomplete": {
                                "$comment": "There's no simple query yet for any subclassof OwlClass, so we query 5 level explicit",
                                "query": "[[HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]] OR [[SubClassOf.HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]] OR [[SubClassOf.SubClassOf.HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]]OR [[SubClassOf.SubClassOf.HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]]OR [[SubClassOf.SubClassOf.SubClassOf.SubClassOf.HasType::Category:OSW725a3cf5458f4daea86615fcbd0029f8]]"
                            }
                        }
                     },
                     },
                     "has_value": {
                     "has_value": {
                         "type": "string",
                         "type": "string",
                         "title": "Value (Instance)",
                         "title": "Value (Instance)",
                        "format": "autocomplete",
                        "range": "Category:Item",
                         "description": "An instance which is the value of this relation"
                         "description": "An instance which is the value of this relation"
                     },
                     },