Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a
(Created page with "=== Get an instance === ==== Existing Instances ==== {{#ask: HasType::Category:OSWf78783ad5d004d3d9cac079167f55a43 |?IsRelatedTo=Battery Pack <!-- |?HasCharacteristic# - =Characteristic|+ template = Viewer/QuantityValue |?HasFileAttachment # - = Files |+ template = Viewer/File --> |format=datatable |datatables-width=100% <!-- auto-scale with info box --> }} ==== Get all passports ==== ===== Web-API ===== <syntaxhighlight lang="http"> https://demo.open-semantic-lab...") |
No edit summary Tag: Metadata slot edit |
||
footer | |||
---|---|---|---|
Line 1: | Line 1: | ||
{{#invoke:Entity|footer}} | |||
header | |||
Line 1: | Line 1: | ||
{{#invoke:Entity|header}} | |||
jsondata | |||
Line 1: | Line 1: | ||
{} | { | ||
"type": [ | |||
"Category:OSWffe74f291d354037b318c422591c5023" | |||
], | |||
"subclass_of": [ | |||
"Category:OSWfe72974590fd4e8ba94cd4e8366375e8" | |||
], | |||
"characteristics": [], | |||
"properties": [ | |||
{ | |||
"property_type": "PrimitiveProperty", | |||
"uuid": "f0e16063-d30b-4609-bb6c-269cdc4f95b1", | |||
"name": "is_about", | |||
"required": false, | |||
"recommended": true, | |||
"array": false, | |||
"range": "Category:OSW531dd85d3f8e46d5817a2c628dd0b346", | |||
"rdf_property": "Property:IsRelatedTo" | |||
} | |||
], | |||
"uuid": "54f58fe9-2b21-48a3-904e-5fb0f5c1e81a", | |||
"label": [ | |||
{ | |||
"text": "Battery Passport (Catena-X v3.0.1)", | |||
"lang": "en" | |||
} | |||
], | |||
"description": [ | |||
{ | |||
"text": "A digital document or product passport for batteries based on Catena-X v3.0.1 JSON-SCHEMA", | |||
"lang": "en" | |||
} | |||
], | |||
"exact_ontology_match": [ | |||
"urn:samm:io.catenax.battery.battery_pass:3.0.1#BatteryPass" | |||
], | |||
"name": "BatteryPassportCatenaXV301", | |||
"based_on": [ | |||
"Category:OSWf78783ad5d004d3d9cac079167f55a43" | |||
] | |||
} | |||
jsonschema | |||
Line 1: | Line 1: | ||
{} | { | ||
"@context": [ | |||
"/wiki/Category:OSW93ccae36243542ceac6c951450a81d47?action=raw\u0026slot=jsonschema", | |||
{}, | |||
"/wiki/Category:OSWfe72974590fd4e8ba94cd4e8366375e8?action=raw\u0026slot=jsonschema", | |||
{ | |||
"characteristics": "Property:HasCharacteristic", | |||
"is_about": { | |||
"@id": "Property:IsRelatedTo", | |||
"@type": "@id" | |||
} | |||
}, | |||
{ | |||
"is_about": "Property:IsRelatedTo" | |||
} | |||
], | |||
"$defs": { | |||
"generated": { | |||
"$comment": "Autogenerated section - do not edit. Generated from Category:Category Category:OSWffe74f291d354037b318c422591c5023", | |||
"allOf": [ | |||
{ | |||
"$ref": "/wiki/Category:OSWfe72974590fd4e8ba94cd4e8366375e8?action=raw\u0026slot=jsonschema" | |||
} | |||
], | |||
"type": "object", | |||
"uuid": "54f58fe9-2b21-48a3-904e-5fb0f5c1e81a", | |||
"title": "GeneratedBatteryPassportCatenaXV301", | |||
"title*": { | |||
"en": "Battery Passport (Catena-X v3.0.1)" | |||
}, | |||
"description": "This is an autogenerated partial class definition of 'BatteryPassportCatenaXV301'", | |||
"description*": { | |||
"en": "A digital document or product passport for batteries based on Catena-X v3.0.1 JSON-SCHEMA" | |||
}, | |||
"required": [ | |||
"type" | |||
], | |||
"properties": { | |||
"type": { | |||
"default": [ | |||
"Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a" | |||
] | |||
}, | |||
"is_about": { | |||
"title": "is_about", | |||
"$ref": "/wiki/Property:IsRelatedTo?action=raw\u0026slot=jsonschema", | |||
"format": "autocomplete", | |||
"range": "Category:OSW531dd85d3f8e46d5817a2c628dd0b346" | |||
} | |||
}, | |||
"defaultProperties": [ | |||
"type", | |||
"is_about" | |||
] | |||
} | |||
}, | |||
"allOf": [ | |||
{ | |||
"$ref": "#/$defs/generated" | |||
} | |||
], | |||
"title": "BatteryPassportCatenaXV301", | |||
"description": "A digital document or product passport for batteries based on Catena-X v3.0.1 JSON-SCHEMA" | |||
} |
Revision as of 05:32, 16 October 2024
Battery Passport (Catena-X v3.0.1) [OSW54f58fe92b2148a3904e5fb0f5c1e81a] | |
---|---|
ID | OSW54f58fe92b2148a3904e5fb0f5c1e81a |
UUID | 54f58fe9-2b21-48a3-904e-5fb0f5c1e81a |
Label | Battery Passport (Catena-X v3.0.1) |
Machine compatible name | BatteryPassportCatenaXV301 |
Statements (outgoing) | |
Statements (incoming) | |
|
|
Keywords |
Description
A digital document or product passport for batteries based on Catena-X v3.0.1 JSON-SCHEMA
Category |
---|
Characteristic | |
---|---|
UUID<br>Definition: Entity, Characteristic | 54f58fe9-2b21-48a3-904e-5fb0f5c1e81a |
OntologyRelated | |
---|---|
Ontology Match (Exact)Only use this property if all properties defined in the Ontology can be asserted to this object.<br>Definition: Ontology related |
MetaCharacteristic | |
---|---|
SupercategoriesParent class(es)<br>Definition: Category (Class), Meta Characteristic |
|
Own propertiesProperties that are defined in addition to the ones inherited by superclasses and imported characteristics<br>Definition: Meta Characteristic |
* is_about (IsRelatedTo): |
Get an instance
Existing Instances
IsRelatedTo | |
---|---|
Battery Passport Test 1 | Test Battery Pack for Battery Pass |
Battery Passport Test 2 | Test Battery Pack 2 for Battery Pass |
Get all passports
Web-API
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category:OSWf78783ad5d004d3d9cac079167f55a43]]&format=json
Get passport for given battery
Web-API
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category:OSWf78783ad5d004d3d9cac079167f55a43]][[IsRelatedTo::Item:OSW07ab9439598d4866a57a8cb60e2726ea]]&format=json
SPARQL
SELECT DISTINCT ?passport
WHERE { ?passport a <https://demo.open-semantic-lab.org/id/Category-3AOSWf78783ad5d004d3d9cac079167f55a43> .
?passport <https://demo.open-semantic-lab.org/id/Property-3AIsRelatedTo> <https://demo.open-semantic-lab.org/id/Item-3AOSW07ab9439598d4866a57a8cb60e2726ea> . }
Get data of a passport instance as JSON
Reference: io.catenax.battery.battery_pass v6.0.0 BatteryPass.json
Web-API
# Single slot
https://demo.open-semantic-lab.org/wiki/Item:OSWff8ab0e2075040d4939ac9313a997904?action=raw&slot=jsondata
# Single Passport
https://wiki-dev.open-semantic-lab.org/w/api.php?action=query&format=json&prop=info|revisions&meta=&formatversion=2&inprop=&rvprop=ids|timestamp|flags|comment|user|contentmodel|roles|content&titles=Item:OSWff8ab0e2075040d4939ac9313a997904&rvslots=jsondata
# Multiple Passports separated with '|'
https://demo.open-semantic-lab.org/w/api.php?action=query&format=json&prop=revisions&titles=Item:OSWff8ab0e2075040d4939ac9313a997904|Item:OSWec30c26e58034fdaa034d8dfa83c4af2|Item:OSWf3fd09199fd84525b5634269d85c8608&rvprop=ids|timestamp|flags|comment|user|content|sha1|slotsha1&rvslots=jsondata
Result (within query.pages.<id>.revisions.0.slots.jsondata.*
)
{
"uuid": "ff8ab0e2-0750-40d4-939a-c9313a997904",
"label": [
{
"text": "Battery Passport Test 1",
"lang": "en"
}
],
"description": [],
"name": "BatteryPassportTest1",
"is_about": "Item:OSW07ab9439598d4866a57a8cb60e2726ea",
"type": [
"Category:OSWf78783ad5d004d3d9cac079167f55a43"
],
"characteristics": {
"type": [
"Category:OSW1147d0af19304c4291e14b941ddabdaf"
],
"physical_dimension": {
"type": [
"Category:OSW30f4d64720e84f71908dfd850223bcf1"
],
"length": {
"type": [
"Category:OSW5205576aace74dc28489f1d9a821f1b7"
],
"value": 10,
"unit": "Item:OSWc73852e7049f42e7b5282866f3839f5e#OSWeb12f149b5944dedbf96018b953a8195",
"uuid": "20879cce-500b-4a48-aae9-5b5135eef0b5"
},
"uuid": "9321c34a-7214-4843-b643-bb49e2c352ac"
},
"uuid": "e755ea9f-81a8-4958-bcf7-7130c425d52b"
}
}
Mappings
Catena-X
Web-API
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=%5b%5bHasExactOntologyMatch::~*urn:samm*%5d%5d%20OR%20%5b%5bHasCloseOntologyMatch::~*urn:samm*%5d%5d|?HasOswId=OSW%20ID|?HasExactOntologyMatch=Exact%20Match|?HasCloseOntologyMatch=Close%20Match|limit=1000&format=json
SPARQL
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?subject ?sameAsSubject
WHERE {
?subject owl:sameAs ?sameAsSubject .
FILTER(STRSTARTS(STR(?sameAsSubject), "urn:samm"))
}
Structure
jsondata
type |
| |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
subclass_of |
| |||||||||||||||||
characteristics |
| |||||||||||||||||
properties |
| |||||||||||||||||
uuid | "54f58fe9-2b21-48a3-904e-5fb0f5c1e81a" | |||||||||||||||||
label |
| |||||||||||||||||
description |
| |||||||||||||||||
exact_ontology_match |
| |||||||||||||||||
name | "BatteryPassportCatenaXV301" | |||||||||||||||||
based_on |
|
jsonschema
@context |
| |||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$defs |
| |||||||||||||||||||||||||||||||||||||||||||||||||
allOf |
| |||||||||||||||||||||||||||||||||||||||||||||||||
title | "BatteryPassportCatenaXV301" | |||||||||||||||||||||||||||||||||||||||||||||||||
description | "A digital document or product passport for batteries based on Catena-X v3.0.1 JSON-SCHEMA" |
Pages in category "OSW54f58fe92b2148a3904e5fb0f5c1e81a"
The following 3 pages are in this category, out of 3 total.