2,286
edits
(update schema) Tag: Metadata slot edit |
(update refs) Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
=== Get an instance === | === Get an instance === | ||
==== Existing Instances ==== | ==== Existing Instances ==== | ||
{{#ask: [[HasType::Category: | {{#ask: [[HasType::Category:OSW74bf728019bd4cc3a8a0833bd54f5338]] | ||
|?IsRelatedTo=Battery Pack | |?IsRelatedTo=Battery Pack | ||
<!-- |?HasCharacteristic# - =Characteristic|+ template = Viewer/QuantityValue | <!-- |?HasCharacteristic# - =Characteristic|+ template = Viewer/QuantityValue | ||
Line 13: | Line 13: | ||
===== Web-API ===== | ===== Web-API ===== | ||
<syntaxhighlight lang="http"> | <syntaxhighlight lang="http"> | ||
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category: | https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category:OSW74bf728019bd4cc3a8a0833bd54f5338]]&format=json | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 20: | Line 20: | ||
===== Web-API ===== | ===== Web-API ===== | ||
<syntaxhighlight lang="http"> | <syntaxhighlight lang="http"> | ||
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category: | https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category:OSW74bf728019bd4cc3a8a0833bd54f5338]][[IsRelatedTo::Item:OSWa814710d43c943a1ac5619f65043fcdc]]&format=json | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 26: | Line 26: | ||
<syntaxhighlight lang="sparql"> | <syntaxhighlight lang="sparql"> | ||
SELECT DISTINCT ?passport | SELECT DISTINCT ?passport | ||
WHERE { ?passport a <https://demo.open-semantic-lab.org/id/Category- | WHERE { ?passport a <https://demo.open-semantic-lab.org/id/Category-3AOSW74bf728019bd4cc3a8a0833bd54f5338> . | ||
?passport <https://demo.open-semantic-lab.org/id/Property-3AIsRelatedTo> <https://demo.open-semantic-lab.org/id/Item- | ?passport <https://demo.open-semantic-lab.org/id/Property-3AIsRelatedTo> <https://demo.open-semantic-lab.org/id/Item-3AOSWa814710d43c943a1ac5619f65043fcdc> . } | ||
</syntaxhighlight>{{Template:Viewer/Link|page=|url=https://sparklis.demo.open-semantic-lab.org/?title=OpenSemanticLab%20Demo%20Graph&endpoint=https%3A//graph.demo.open-semantic-lab.org/blazegraph/namespace/kb/sparql&sparklis-query=%5BVId%5DReturn%28Det%28An%281%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//demo.open-semantic-lab.org/id/Category- | </syntaxhighlight>{{Template:Viewer/Link|page=|url=https://sparklis.demo.open-semantic-lab.org/?title=OpenSemanticLab%20Demo%20Graph&endpoint=https%3A//graph.demo.open-semantic-lab.org/blazegraph/namespace/kb/sparql&sparklis-query=%5BVId%5DReturn%28Det%28An%281%2CModif%28Select%2CUnordered%29%2CClass%28%22https%3A//demo.open-semantic-lab.org/id/Category-3AOSW74bf728019bd4cc3a8a0833bd54f5338%22%29%29%2CNone%29%29&sparklis-path=D&entity_lexicon_select=http%3A//www.w3.org/2000/01/rdf-schema%23label&concept_lexicons_select=http%3A//www.w3.org/2000/01/rdf-schema%23label|label=Sparklis}} | ||
==== Get data of a passport instance as JSON ==== | ==== Get data of a passport instance as JSON ==== | ||
Reference: {{Template:Viewer/Link|page=|url=https://github.com/eclipse-tractusx/sldt-semantic-models/blob/main/io.catenax.battery.battery_pass/ | Reference: {{Template:Viewer/Link|page=|url=https://github.com/eclipse-tractusx/sldt-semantic-models/blob/main/io.catenax.battery.battery_pass/6.0.0/gen/BatteryPass.json|label=io.catenax.battery.battery_pass v6.0.0 BatteryPass.json}} | ||
===== Web-API ===== | ===== Web-API ===== | ||
<syntaxhighlight lang="http"> | <syntaxhighlight lang="http"> | ||
# Single slot | # Single slot | ||
https://demo.open-semantic-lab.org/wiki/Item: | https://demo.open-semantic-lab.org/wiki/Item:OSWa814710d43c943a1ac5619f65043fcdc?action=raw&slot=jsondata | ||
# Single Passport | # 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: | 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:OSWa814710d43c943a1ac5619f65043fcdc&rvslots=jsondata | ||
# Multiple Passports separated with '|' | # Multiple Passports separated with '|' | ||
https://demo.open-semantic-lab.org/w/api.php?action=query&format=json&prop=revisions&titles=Item: | https://demo.open-semantic-lab.org/w/api.php?action=query&format=json&prop=revisions&titles=Item:OSWa814710d43c943a1ac5619f65043fcdc|Item:OSW5ed635e813354118badc79c2fcb66913|Item:OSW45886bd81a344dc1af92deb5935091ae&rvprop=ids|timestamp|flags|comment|user|content|sha1|slotsha1&rvslots=jsondata | ||
</syntaxhighlight>Result (within <code>query.pages.<id>.revisions.0.slots.jsondata.*</code>)<syntaxhighlight lang="json"> | </syntaxhighlight>Result (within <code>query.pages.<id>.revisions.0.slots.jsondata.*</code>)<syntaxhighlight lang="json"> | ||
{ | { | ||
" | "identification": { | ||
" | "category": "EV", | ||
" | "idDmc": "123", | ||
" | "chemistry": "Li", | ||
"identification": { | |||
"type": { | |||
"manufacturerPartId": "123123", | |||
"nameAtManufacturer": "cellTypeA" | |||
}, | |||
"codes": [], | |||
"dataCarrier": { | |||
"carrierType": "QR Code", | |||
"carrierLayout": "" | |||
}, | |||
"classification": [] | |||
} | |||
}, | |||
"operation": { | |||
"manufacturer": { | |||
"facility": [], | |||
"manufacturer": "BPNL123456789101" | |||
}, | }, | ||
" | "intoServiceDate": "2024-01-01" | ||
}, | |||
"characteristics": { | |||
"value": | "warranty": { | ||
" | "lifeValue": 3, | ||
"lifeUnit": "unit:year" | |||
}, | |||
"physicalDimension": { | |||
"weight": { | |||
"value": 1, | |||
"unit": "unit:kilogram" | |||
}, | }, | ||
" | "height": { | ||
" | "value": 10, | ||
" | "unit": "unit:centimetre" | ||
}, | }, | ||
" | "length": { | ||
" | "value": 30, | ||
"unit": "unit:centimetre" | |||
}, | }, | ||
" | "width": { | ||
"value": | "value": 10, | ||
" | "unit": "unit:centimetre" | ||
} | } | ||
} | } | ||
}, | }, | ||
" | "sustainability": { | ||
" | "documents": { | ||
" | "separateCollection": [ | ||
{ | |||
"content": "", | |||
"contentType": "", | |||
"header": "" | |||
" | } | ||
], | |||
"wastePrevention": [] | |||
}, | }, | ||
" | "carbonFootprint": [ | ||
" | { | ||
" | "value": 500, | ||
" | "rulebook": [], | ||
"lifecycle": "", | |||
"unit": "kg/kg", | |||
"type": "Climate Change Total", | |||
"manufacturingPlant": [], | |||
"declaration": [] | |||
} | |||
], | |||
"status": "original" | |||
}, | |||
"materials": { | |||
"active": { | |||
"nickel": { | |||
"location": "Cathode", | |||
"recycled": 0.1, | |||
"documentation": [], | |||
"critical": true | |||
}, | |||
"lithium": { | |||
"location": "Cathode", | |||
"recycled": 0, | |||
"documentation": [], | |||
"critical": true | |||
}, | |||
"cobalt": { | |||
"location": "Cathode", | |||
"recycled": 0.2, | |||
"documentation": [], | |||
"critical": true | |||
}, | |||
"lead": { | |||
"impactOfSubstances": [], | |||
"critical": false, | |||
"documentation": [], | |||
"recycled": 0, | |||
"location": "Cathode", | |||
"concentration": 3, | |||
"materialUnit": "unit:partPerMillion" | |||
} | |||
}, | }, | ||
" | "hazardous": { | ||
"cadmium": { | |||
"impactOfSubstances": [], | |||
"concentration": 2, | |||
"location": "Cathode", | |||
"materialUnit": "unit:partPerMillion", | |||
"critical": false, | |||
"documentation": [] | |||
}, | |||
"mercury": { | |||
"impactOfSubstances": [], | |||
"concentration": 10, | |||
"location": "Cathode", | |||
"materialUnit": "unit:partPerMillion", | |||
"critical": false, | |||
"documentation": [] | |||
}, | |||
"lead": { | |||
"impactOfSubstances": [], | |||
"critical": false, | |||
"documentation": [], | |||
"recycled": 0, | |||
"location": "", | |||
"concentration": 0, | |||
"materialUnit": "unit:partPerMillion" | |||
} | |||
}, | }, | ||
" | "composition": [] | ||
" | }, | ||
" | "performance": { | ||
" | "rated": { | ||
" | "voltage": { | ||
"min": 3, | |||
"max": 3.2, | |||
"nominal": 3.7 | |||
}, | |||
"roundTripEfficiency": { | |||
"depthOfDischarge": 20, | |||
"initial": 97, | |||
"50PercentLife": 85 | |||
}, | |||
"resistance": { | |||
"cell": 20, | |||
"pack": 50 | |||
}, | |||
"power": { | |||
"value": 100, | |||
"at20SoC": 80, | |||
"at80SoC": 100 | |||
}, | |||
"capacity": { | |||
"value": 50, | |||
"thresholdExhaustion": 40 | |||
}, | |||
"temperature": { | |||
"lower": -20, | |||
"upper": 90 | |||
}, | |||
"selfDischargingRate": 2, | |||
"lifetime": { | |||
"expectedYears": 5, | |||
"report": [], | |||
"cycleLifeTesting": { | |||
"temperature": 20, | |||
"cycles": 10000, | |||
"depthOfDischarge": 20, | |||
"appliedChargeRate": 1, | |||
"appliedDischargeRate": 1 | |||
} | |||
} | |||
}, | }, | ||
" | "dynamic": { | ||
"stateOfCharge": { | |||
"value": 0, | |||
"time": "2024-01-01T12:00:00" | |||
}, | |||
"fullCycles": { | |||
"time": "2024-01-01T12:00:00", | |||
"value": 5000 | |||
}, | |||
"selfDischargingRate": 2, | |||
"power": { | |||
"fade": { | |||
"value": 1, | |||
"time": "2024-01-01T12:00:00" | |||
}, | |||
"remaining": { | |||
"time": "2024-01-01T12:00:00", | |||
"value": 1 | |||
} | |||
}, | |||
"capacity": { | |||
"fade": { | |||
"value": 1, | |||
"time": "2024-01-01T12:00:00" | |||
}, | |||
"throughput": { | |||
"time": "2024-01-01T12:00:00", | |||
"value": 1 | |||
}, | |||
"capacity": { | |||
"time": "2024-01-01T12:00:00", | |||
"value": 1 | |||
} | |||
}, | }, | ||
" | "roundTripEfficiency": { | ||
" | "fade": { | ||
"value": " | "value": 95, | ||
"time": "2024-01-01T12:00:00" | |||
}, | |||
"remaining": { | |||
"value": 93, | |||
"time": "2024-01-01T12:00:00" | |||
} | |||
}, | }, | ||
" | "resistance": { | ||
" | "increase": { | ||
"pack": { | |||
"value": 5, | |||
"time": "2024-01-01T12:00:00" | |||
}, | |||
"cell": { | |||
"value": 2, | |||
"time": "2024-01-01T12:00:00" | |||
} | |||
}, | |||
"remaining": { | |||
"pack": { | |||
"time": "2024-01-01T12:00:00", | |||
"value": 20 | |||
}, | |||
"cell": { | |||
"time": "2024-01-01T12:00:00", | |||
"value": 6 | |||
} | |||
} | |||
}, | }, | ||
" | "energy": { | ||
"value": " | "soce": { | ||
" | "value": 1, | ||
"time": "2024-01-01T12:00:00" | |||
}, | |||
"remaining": { | |||
"time": "2024-01-01T12:00:00", | |||
"value": 1 | |||
} | |||
} | } | ||
} | } | ||
}, | }, | ||
" | "conformity": { | ||
"declarationOfConformity": [], | |||
" | "resultOfTestReport": [], | ||
"thirdPartyAssurance": [], | |||
"dueDiligencePolicy": [] | |||
}, | |||
"safety": { | |||
"usableExtinguishAgent": [], | |||
" | "safetyMeasures": [], | ||
" | "meaningOfLabels": [], | ||
"dismantling": [] | |||
" | |||
" | |||
" | |||
}, | }, | ||
" | "metadata": { | ||
" | "version": "", | ||
"expirationDate": "2026-01-01", | |||
"issueDate": "2024-01-01", | |||
"economicOperatorId": "BPNL123456789012", | |||
" | "passportIdentifier": "a814710d-43c9-43a1-ac56-19f65043fcdc", | ||
" | "predecessor": "00000000-0000-0000-0000-000000000000", | ||
"backupReference": "" | |||
}, | }, | ||
" | "commercial": { | ||
"purpose": [] | |||
" | |||
}, | }, | ||
" | "handling": { | ||
"content": { | |||
"producer": [], | |||
"sparePart": [] | |||
" | }, | ||
"applicable": false | |||
}, | }, | ||
"type": [ | "type": [ | ||
"Category: | "Category:OSW74bf728019bd4cc3a8a0833bd54f5338" | ||
], | ], | ||
"is_about": "Item:OSW07ab9439598d4866a57a8cb60e2726ea", | "is_about": "Item:OSW07ab9439598d4866a57a8cb60e2726ea", | ||
"uuid": " | "uuid": "a814710d-43c9-43a1-ac56-19f65043fcdc", | ||
"label": [ | "label": [ | ||
{ | { | ||
"text": "Battery Passport | "text": "Battery Passport v6.0.0 Test 1", | ||
"lang": "en" | "lang": "en" | ||
} | } | ||
], | ], | ||
"description": [], | "description": [], | ||
"name": " | "name": "BatteryPassportV600Test1" | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 205: | Line 350: | ||
{{Template:Editor/Graph | {{Template:Editor/Graph | ||
| file_name = Battery Passport graph-01 | | file_name = Battery Passport graph-01 | ||
| page_name = Category: | | page_name = Category:OSW74bf728019bd4cc3a8a0833bd54f5338 | ||
| root = Category: | | root = Category:OSW74bf728019bd4cc3a8a0833bd54f5338 | ||
| uuid = c8e947a2-ac0d-494e-a8a0-15a734c298c0 | | uuid = c8e947a2-ac0d-494e-a8a0-15a734c298c0 | ||
| roots = Category: | | roots = Category:OSW74bf728019bd4cc3a8a0833bd54f5338 | ||
| properties = HasProperty; HasCharacteristic; Equivalent_URI, HasCloseMatch | | properties = HasProperty; HasCharacteristic; Equivalent_URI, HasCloseMatch | ||
| ignore_properties = Display_title_of; Display_title_of_lowercase; Display_title_of_normalized; Has_query; HasUuid | | ignore_properties = Display_title_of; Display_title_of_lowercase; Display_title_of_normalized; Has_query; HasUuid |