Category:OSWf78783ad5d004d3d9cac079167f55a43
(fix context) Tag: Metadata slot edit |
(import from wiki-dev) Tag: Metadata slot edit |
||
Line 1: | Line 1: | ||
== Get an instance == | === Get an instance === | ||
{{#ask: [[HasType::Category:OSWf78783ad5d004d3d9cac079167f55a43]] | {{#ask: [[HasType::Category:OSWf78783ad5d004d3d9cac079167f55a43]] | ||
|?IsRelatedTo=Battery Pack | |?IsRelatedTo=Battery Pack | ||
}} | }} | ||
==== Get passport for given battery ==== | |||
===== Web-API ===== | |||
<syntaxhighlight lang="http"> | <syntaxhighlight lang="http"> | ||
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category:OSWf78783ad5d004d3d9cac079167f55a43]][[IsRelatedTo::Item:OSW07ab9439598d4866a57a8cb60e2726ea]] | https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category:OSWf78783ad5d004d3d9cac079167f55a43]][[IsRelatedTo::Item:OSW07ab9439598d4866a57a8cb60e2726ea]] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===== SPARQL ===== | |||
<syntaxhighlight lang="sparql"> | |||
SELECT DISTINCT ?passport | SELECT DISTINCT ?passport | ||
WHERE { ?passport a <https://demo.open-semantic-lab.org/id/Category-3AOSWf78783ad5d004d3d9cac079167f55a43> . | WHERE { ?passport a <https://demo.open-semantic-lab.org/id/Category-3AOSWf78783ad5d004d3d9cac079167f55a43> . | ||
Line 16: | Line 18: | ||
</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-3AOSWf78783ad5d004d3d9cac079167f55a43%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}} | </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-3AOSWf78783ad5d004d3d9cac079167f55a43%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}} | ||
==Mappings== | ==== Get data of a passport instance as JSON ==== | ||
===Catena-X=== | 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<syntaxhighlight lang="http"> | |||
https://demo.open-semantic-lab.org/wiki/Item:OSWff8ab0e2075040d4939ac9313a997904?action=raw&slot=jsondata | |||
or | |||
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 | |||
</syntaxhighlight>Result<syntaxhighlight lang="json"> | |||
{ | |||
"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" | |||
} | |||
} | |||
</syntaxhighlight> | |||
=== Mappings === | |||
==== Catena-X ==== | |||
{{#ask: [[HasExactOntologyMatch::~*urn:samm*]] OR [[HasCloseOntologyMatch::~*urn:samm*]] | {{#ask: [[HasExactOntologyMatch::~*urn:samm*]] OR [[HasCloseOntologyMatch::~*urn:samm*]] | ||
|?HasOswId=OSW ID | |?HasOswId=OSW ID | ||
jsonschema | |||
---|---|---|---|
Line 2: | Line 2: | ||
"@context": [ | "@context": [ | ||
"/wiki/Category:OSW93ccae36243542ceac6c951450a81d47?action=raw\u0026slot=jsonschema", | "/wiki/Category:OSW93ccae36243542ceac6c951450a81d47?action=raw\u0026slot=jsonschema", | ||
{}, | |||
"/wiki/Category:OSWfe72974590fd4e8ba94cd4e8366375e8?action=raw\u0026slot=jsonschema", | "/wiki/Category:OSWfe72974590fd4e8ba94cd4e8366375e8?action=raw\u0026slot=jsonschema", | ||
{ | { |
Revision as of 07:02, 8 October 2024
Battery Passport [OSWf78783ad5d004d3d9cac079167f55a43] | |
---|---|
ID | OSWf78783ad5d004d3d9cac079167f55a43 |
UUID | f78783ad-5d00-4d3d-9cac-079167f55a43 |
Label | Battery Passport |
Machine compatible name | BatteryPassport |
Statements (outgoing) | |
Statements (incoming) | |
|
|
Keywords |
Description
A digital document or product passport for batteries
Category |
---|
Characteristic | |
---|---|
UUID<br>Definition: Entity, Characteristic | f78783ad-5d00-4d3d-9cac-079167f55a43 |
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 |
* characteristics (HasCharacteristic): Product Characteristic * is_about (IsRelatedTo): |
Get an instance
Battery PackThe most generic of all properties. Indicates that there is more than no relation. | |
---|---|
Battery Passport Test 1 | Test Battery Pack for Battery Pass |
Battery Passport Test 2 | Test Battery Pack 2 for Battery Pass |
Battery Passport Test 3 | Test Battery Pack 3 for Battery Pass |
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]]
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
https://demo.open-semantic-lab.org/wiki/Item:OSWff8ab0e2075040d4939ac9313a997904?action=raw&slot=jsondata
or
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
Result
{
"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
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 | "f78783ad-5d00-4d3d-9cac-079167f55a43" | ||||||||||||||||||||||||||||||||||
label |
| ||||||||||||||||||||||||||||||||||
description |
| ||||||||||||||||||||||||||||||||||
exact_ontology_match |
| ||||||||||||||||||||||||||||||||||
name | "BatteryPassport" |
jsonschema
@context |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$defs |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
allOf |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title | "BatteryPassport" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description | "A digital document or product passport for batteries" |
Pages in category "OSWf78783ad5d004d3d9cac079167f55a43"
The following 3 pages are in this category, out of 3 total.