Difference between revisions of "JsonSchema:Statement"

From BrineRIS Dataspace
(Update package: OSW Core)
(Update package: OSW Core)
 
Line 2: Line 2:
 
     "@context": {
 
     "@context": {
 
         "Property": "https://wiki-dev.open-semantic-lab.org/id/Property-3A",
 
         "Property": "https://wiki-dev.open-semantic-lab.org/id/Property-3A",
         "subject": "Property:HasSubject",
+
        "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
         "predicate": "Property:HasProperty",
+
        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
         "property": "Property:HasProperty",
+
         "subject*": "Property:HasSubject",
         "quantity": "Property:HasProperty",
+
        "subject": "rdf:subject",
         "object": "Property:HasObject",
+
         "predicate*": "Property:HasProperty",
         "value": "Property:HasObject",
+
        "predicate": "rdf:predicate",
 +
         "property*": "Property:HasProperty",
 +
        "property": "rdf:predicate",
 +
         "quantity*": "Property:HasProperty",
 +
        "quantity": "rdf:predicate",
 +
         "object*": "Property:HasObject",
 +
        "object": "rdf:object",
 +
         "value*": "Property:HasObject",
 +
        "value": "rdf:object",
 
         "unit": "Property:HasUnit",
 
         "unit": "Property:HasUnit",
 
         "substatements": "Property:HasStatement",
 
         "substatements": "Property:HasStatement",
         "label": "Property:HasLabel"
+
         "label*": "Property:HasLabel",
 +
        "label": "rdfs:label"
 
     },
 
     },
    "common_definitions": {},
 
 
     "type": "object",
 
     "type": "object",
 
     "format": "grid-strict",
 
     "format": "grid-strict",
Line 18: Line 26:
 
     "headerTemplate": "... {{#if self.predicate}}{{self.predicate}}{{/if}}{{#if self.property}}{{self.property}}{{/if}}{{#if self.quantity}}{{self.quantity}}{{/if}} ...",
 
     "headerTemplate": "... {{#if self.predicate}}{{self.predicate}}{{/if}}{{#if self.property}}{{self.property}}{{/if}}{{#if self.quantity}}{{self.quantity}}{{/if}} ...",
 
     "required": [
 
     "required": [
         "uuid"
+
         "uuid",
 +
        "rdf_type"
 
     ],
 
     ],
 
     "options": {
 
     "options": {
Line 24: Line 33:
 
     },
 
     },
 
     "properties": {
 
     "properties": {
 +
        "rdf_type": {
 +
            "default": "rdf:Statement",
 +
            "options": {
 +
                "hidden": true
 +
            }
 +
        },
 
         "uuid": {
 
         "uuid": {
 
             "title": "UUID",
 
             "title": "UUID",
Line 75: Line 90:
 
             "type": "array",
 
             "type": "array",
 
             "format": "tabs",
 
             "format": "tabs",
             "propertyOrder": 1010,
+
             "propertyOrder": 3010,
 
             "items": {
 
             "items": {
 
                 "$ref": "#"
 
                 "$ref": "#"
Line 86: Line 101:
 
     "oneOf": [
 
     "oneOf": [
 
         {
 
         {
            "$ref": "#/common_definitions",
 
 
             "title": "Object Statement",
 
             "title": "Object Statement",
 
             "required": [
 
             "required": [
Line 126: Line 140:
 
         },
 
         },
 
         {
 
         {
            "$ref": "#/common_definitions",
 
 
             "title": "Data Statement",
 
             "title": "Data Statement",
 
             "title*": {
 
             "title*": {
Line 164: Line 177:
 
         },
 
         },
 
         {
 
         {
            "$ref": "#/common_definitions",
 
 
             "title": "Quantity Statement",
 
             "title": "Quantity Statement",
 
             "title*": {
 
             "title*": {
Line 210: Line 222:
 
                         "de": "Einheit"
 
                         "de": "Einheit"
 
                     },
 
                     },
 +
                    "propertyOrder": 1010,
 
                     "watch": {
 
                     "watch": {
 
                         "quantity": "statement.quantity",
 
                         "quantity": "statement.quantity",

Latest revision as of 13:45, 3 December 2023

@context
Property"https://wiki-dev.open-semantic-lab.org/id/Property-3A"
rdf"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
rdfs"http://www.w3.org/2000/01/rdf-schema#"
subject*"Property:HasSubject"
subject"rdf:subject"
predicate*"Property:HasProperty"
predicate"rdf:predicate"
property*"Property:HasProperty"
property"rdf:predicate"
quantity*"Property:HasProperty"
quantity"rdf:predicate"
object*"Property:HasObject"
object"rdf:object"
value*"Property:HasObject"
value"rdf:object"
unit"Property:HasUnit"
substatements"Property:HasStatement"
label*"Property:HasLabel"
label"rdfs:label"
type"object"
format"grid-strict"
id"statement"
headerTemplate"... {{#if self.predicate}}{{self.predicate}}{{/if}}{{#if self.property}}{{self.property}}{{/if}}{{#if self.quantity}}{{self.quantity}}{{/if}} ..."
required
"uuid"
"rdf_type"
options
display_required_onlytrue
properties
rdf_type
default"rdf:Statement"
options
hiddentrue
uuid
title"UUID"
type"string"
format"uuid"
options
hiddentrue
label
title"Label"
description"Human readable name"
type"array"
format"table"
items
title"Label"
title*
de"Name"
eval_template
type"wikitext"
mode"store"
value"{{{text}}}@{{{lang}}}"
$ref"/wiki/JsonSchema:Label?action=raw"
options
collapsedtrue
grid_columns12
subject
type"string"
format"autocomplete"
title"Subject"
title*
de"Subjekt"
options
grid_columns4
autocomplete
category"Category:Entity"
query_filter_property"HasName"
substatements
title"Substatements"
type"array"
format"tabs"
propertyOrder3010
items
$ref"#"
options
grid_columns12
oneOf
title"Object Statement"
required
"uuid"
"predicate"
"object"
properties
predicate
type"string"
format"autocomplete"
title"Predicate"
title*
de"Prädikat"
options
grid_columns4
autocomplete
category"Category:Property"
object
type"string"
format"autocomplete"
title"Object"
title*
de"Objekt"
options
grid_columns4
autocomplete
category"Category:Entity"
query_filter_property"HasName"
title"Data Statement"
title*
de"Datenangabe"
required
"uuid"
"property"
"value"
properties
property
type"string"
format"autocomplete"
title"Property"
title*
de"Attribut"
options
grid_columns4
autocomplete
category"Category:DataProperty"
value
type"string"
title"Value"
title*
de"Wert"
options
grid_columns4
title"Quantity Statement"
title*
de"Größenangabe"
required
"uuid"
"quantity"
"value"
"unit"
"unit_symbol"
"numerical_value"
properties
quantity
type"string"
format"autocomplete"
title"Property"
title*
de"Attribut"
options
grid_columns4
autocomplete
category"Category:QuantityProperty"
numerical_value
type"string"
format"number"
title"Value"
title*
de"Wert"
options
grid_columns2
unit
type"string"
format"autocomplete"
title"Unit"
title*
de"Einheit"
propertyOrder1010
watch
quantity"statement.quantity"
unit_symbol"statement.unit_symbol"
options
grid_columns2
autocomplete
query"[[-HasInputUnit::{{$(quantity)}}]]|?Display_title_of=label"
render_template
type
"handlebars"
value"{{result.printouts.label.[0]}}"
field_maps
source_path"$"
template"{{{result.printouts.label.[0]}}}"
target_path"$(unit_symbol)"
unit_symbol
type"string"
options
hiddentrue
value
type"string"
title"Value"
title*
de"Wert"
watch
numerical_value"statement.numerical_value"
unit_symbol"statement.unit_symbol"
template"{{{numerical_value}}} {{{unit_symbol}}}"
options
hiddentrue