Category:OSW2063ac0fad0e4ed5a93cb3f01fe6d81c: Difference between revisions

changed BatteryPassportCePass to BatteryPassportIDcycLIB
(update docs)
Tag: 2017 source edit
(changed BatteryPassportCePass to BatteryPassportIDcycLIB)
Tag: Metadata slot edit
 
(3 intermediate revisions by 2 users not shown)
Line 34: Line 34:
===== Web-API =====
===== Web-API =====
<syntaxhighlight lang="http">
<syntaxhighlight lang="http">
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasUuid::F088AFB0-92CF-11EF-B559-0800200C9A66]]&format=json
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasUuid::63A8B450-A82D-11EF-BE87-0800200C9A66]]&format=json
</syntaxhighlight>
</syntaxhighlight>


jsondata
Line 23: Line 23:
     "label": [
     "label": [
         {
         {
             "text": "Battery Passport (CE-Pass)",
             "text": "Battery Passport (IDcycLIB)",
             "lang": "en"
             "lang": "en"
         }
         }
Line 29: Line 29:
     "description": [
     "description": [
         {
         {
             "text": "A digital document or product passport for batteries based on CE-PASS JSON-SCHEMA",
             "text": "A digital document or product passport for batteries based on IDcycLIB JSON-SCHEMA",
             "lang": "en"
             "lang": "en"
         }
         }
Line 36: Line 36:
         "urn:samm:at.srfg.cepass:1.0.0#CEPass"
         "urn:samm:at.srfg.cepass:1.0.0#CEPass"
     ],
     ],
     "name": "BatteryPassportCePass",
     "name": "BatteryPassportIDcycLIB",
     "based_on": [
     "based_on": [
         "Category:OSW74bf728019bd4cc3a8a0833bd54f5338"
         "Category:OSW74bf728019bd4cc3a8a0833bd54f5338"
     ]
     ]
}
}
jsonschema
Line 12: Line 12:
         },
         },
         {
         {
             "is_about": "Property:IsRelatedTo"
             "is_about": {
                "@id": "Property:IsRelatedTo",
                "@type": "@id"
            }
         }
         }
     ],
     ],
Line 25: Line 28:
             "type": "object",
             "type": "object",
             "uuid": "2063ac0f-ad0e-4ed5-a93c-b3f01fe6d81c",
             "uuid": "2063ac0f-ad0e-4ed5-a93c-b3f01fe6d81c",
             "title": "GeneratedBatteryPassportCePass",
             "title": "GeneratedBatteryPassportIDcycLIB",
             "title*": {
             "title*": {
                 "en": "Battery Passport (CE-Pass)"
                 "en": "Battery Passport (IDcycLIB)"
             },
             },
             "description": "This is an autogenerated partial class definition of 'BatteryPassportCePass'",
             "description": "This is an autogenerated partial class definition of 'BatteryPassportIDcycLIB'",
             "description*": {
             "description*": {
                 "en": "A digital document or product passport for batteries based on CE-PASS JSON-SCHEMA"
                 "en": "A digital document or product passport for batteries based on CE-PASS JSON-SCHEMA"
Line 48: Line 51:
                     "format": "autocomplete",
                     "format": "autocomplete",
                     "range": "Category:OSW531dd85d3f8e46d5817a2c628dd0b346"
                     "range": "Category:OSW531dd85d3f8e46d5817a2c628dd0b346"
                },
                "physical_uuid": {
                    "title": "Polysecure ID",
                    "type": "string",
                    "pattern": "^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$"
                 }
                 }
             },
             },
             "defaultProperties": [
             "defaultProperties": [
                 "type",
                 "type",
                 "is_about"
                 "is_about",
                "physical_uuid"
             ]
             ]
         }
         }
Line 61: Line 70:
         }
         }
     ],
     ],
     "title": "BatteryPassportCePass",
     "title": "BatteryPassportIDcycLIB",
     "description": "A digital document or product passport for batteries based on CE-PASS JSON-SCHEMA",
     "description": "A digital document or product passport for batteries based on CE-PASS JSON-SCHEMA",
     "x-samm-aspect-model-urn": "urn:samm:at.srfg.cepass:1.0.0#CEPass",
     "x-samm-aspect-model-urn": "urn:samm:at.srfg.cepass:1.0.0#CEPass",