Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a: Difference between revisions

update refs
(fix)
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:OSWf78783ad5d004d3d9cac079167f55a43]]
{{#ask: [[HasType::Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a]]
|?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:OSWf78783ad5d004d3d9cac079167f55a43]]&format=json
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a]]&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:OSWf78783ad5d004d3d9cac079167f55a43]][[IsRelatedTo::Item:OSW07ab9439598d4866a57a8cb60e2726ea]]&format=json
https://demo.open-semantic-lab.org/w/api.php?action=ask&query=[[HasType::Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a]][[IsRelatedTo::Item:OSWf96a0291a1a04a71b89dc3c80628e45c]]&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-3AOSWf78783ad5d004d3d9cac079167f55a43> .
WHERE { ?passport a <https://demo.open-semantic-lab.org/id/Category-3AOSW54f58fe92b2148a3904e5fb0f5c1e81a> .
         ?passport <https://demo.open-semantic-lab.org/id/Property-3AIsRelatedTo> <https://demo.open-semantic-lab.org/id/Item-3AOSW07ab9439598d4866a57a8cb60e2726ea> . }
         ?passport <https://demo.open-semantic-lab.org/id/Property-3AIsRelatedTo> <https://demo.open-semantic-lab.org/id/Item-3AOSW07ab9439598d4866a57a8cb60e2726ea> . }
</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-3AOSW54f58fe92b2148a3904e5fb0f5c1e81a%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/6.0.0/gen/BatteryPass.json|label=io.catenax.battery.battery_pass v6.0.0 BatteryPass.json}}
Reference: {{Template:Viewer/Link|page=|url=https://github.com/eclipse-tractusx/sldt-semantic-models/blob/main/io.catenax.battery.battery_pass/3.0.1/gen/BatteryPass.json|label=io.catenax.battery.battery_pass v3.0.1 BatteryPass.json}}


===== Web-API =====
===== Web-API =====
Line 38: Line 38:
https://demo.open-semantic-lab.org/wiki/Item:OSWff8ab0e2075040d4939ac9313a997904?action=raw&slot=jsondata
https://demo.open-semantic-lab.org/wiki/Item:OSWff8ab0e2075040d4939ac9313a997904?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:OSWff8ab0e2075040d4939ac9313a997904&rvslots=jsondata
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:OSWf96a0291a1a04a71b89dc3c80628e45c&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:OSWff8ab0e2075040d4939ac9313a997904|Item:OSWec30c26e58034fdaa034d8dfa83c4af2|Item:OSWf3fd09199fd84525b5634269d85c8608&rvprop=ids|timestamp|flags|comment|user|content|sha1|slotsha1&rvslots=jsondata
https://demo.open-semantic-lab.org/w/api.php?action=query&format=json&prop=revisions&titles=Item:OSWf96a0291a1a04a71b89dc3c80628e45c|Item:OSW50e8386b7d704903985570678745bf7b|Item:OSW5f9224e2265e4215bfa73fc5e82eb25c&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">
{
{
   "uuid": "ff8ab0e2-0750-40d4-939a-c9313a997904",
  "manufacturer": {
    "name": "Fraunhofer ISC",
    "contact": {
      "email": "simon.stier@isc.fraunhofer.de"
    },
    "address": {
      "thoroughfare": {
        "technicalKey": "STREET",
        "value": "Neunerplatz",
        "number": "2"
      },
      "locality": {
        "technicalKey": "CITY",
        "value": "Würzburg"
      },
      "country": {
        "shortName": "DE"
      },
      "postCode": {
        "value": "97082",
        "technicalKey": "CEDEX"
      }
    }
  },
  "electrochemicalProperties": {
    "batteryPower": {
      "maximumAllowedBatteryPower": 0,
      "powerFade": 0,
      "powerCapabilityAt20Charge": 0,
      "powerCapabilityAt80Charge": 0,
      "originalPowerCapability": 0,
      "originalPowerCapabilityLimits": 0
    },
    "batteryVoltage": {
      "minVoltage": 3.6,
      "nominalVoltage": 3.7,
      "maxVoltage": 4.2
    },
    "ratedCapacity": 10,
    "capacityFade": 0,
    "internalResistance": {
      "cellInternalResistance": 0,
      "packInternalResistance": 0,
      "packInternalResistanceIncrease": 0
    },
    "capacityThresholdExhaustion": 0,
    "batteryEnergy": {
      "maximumAllowedBatteryEnergy": 0,
      "energyRoundtripEfficiency": 0,
      "energyRoundtripEfficiencyChange": 0
    },
    "ratioMaximumAllowedBatteryPowerAndMaximumAllowedBatteryEnergy": 0
  },
  "physicalDimensions": {
    "length": 30,
    "width": 10,
    "height": 10,
    "diameter": 12.7,
    "weight": 0.5
  },
  "stateOfBattery": {
    "stateOfHealth": 95,
    "stateOfCharge": 70,
    "statusBattery": ""
  },
  "batteryIdentification": {
    "batteryType": "",
    "batteryModel": "",
    "batteryIDDMCCode": ""
  },
  "manufacturing": {
    "dateOfManufacturing": "2024-10-16",
    "address": {
      "thoroughfare": {
        "technicalKey": "STREET",
        "value": "Neunerplatz",
        "number": "2"
      },
      "locality": {
        "technicalKey": "CITY",
        "value": "Würzburg"
      },
      "country": {
        "shortName": "DE"
      },
      "postCode": {
        "value": "97082",
        "technicalKey": "CEDEX"
      }
    }
  },
  "datePlacedOnMarket": "2024-10-16",
  "cellChemistry": {
    "cathodeActiveMaterials": [
      {
        "materialName": "LFP",
        "materialPercentageMassFraction": 100
      }
    ],
    "recyclateContentActiveMaterials": [],
    "anodeActiveMaterials": [
      {
        "materialName": "Graphite",
        "materialPercentageMassFraction": 100
      }
    ],
    "cathodeCompositionOther": [],
    "anodeCompositionOther": [],
    "electrolyteComposition": []
  },
  "composition": {
    "components": {
      "componentsSupplier": [],
      "componentsPartNumber": []
    },
    "compositionOfBattery": [],
    "criticalRawMaterials": "Lithium"
  },
  "cO2FootprintTotal": 1500,
  "temperatureRangeIdleState": {
    "temperatureRangeIdleStateLowerLimit": -20,
    "temperatureRangeIdleStateUpperLimit": 100
  },
  "warrantyPeriod": 2,
  "batteryCycleLife": {
    "cycleLifeTestCRate": 1,
    "cycleLifeTestDepthOfDischarge": 20,
    "expectedLifetime": 1000
  },
  "type": [
    "Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a"
  ],
  "is_about": "Item:OSW07ab9439598d4866a57a8cb60e2726ea",
   "uuid": "f96a0291-a1a0-4a71-b89d-c3c80628e45c",
   "label": [
   "label": [
     {
     {
       "text": "Battery Passport Test 1",
       "text": "Battery Passport v3.0.1 Test 1",
       "lang": "en"
       "lang": "en"
     }
     }
   ],
   ],
   "description": [],
   "description": [],
   "name": "BatteryPassportTest1",
   "name": "BatteryPassportV301Test1",
   "is_about": "Item:OSW07ab9439598d4866a57a8cb60e2726ea",
   "document": {
  "type": [
     "safetyMeasures": [
    "Category:OSWf78783ad5d004d3d9cac079167f55a43"
       {
  ],
         "fileLocation": "File:OSWa7c96e9cdb2a4936807e4ccc70d15176.pdf",
  "characteristics": {
         "title": ""
     "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"
   }
   }
}
}
Line 83: Line 200:


==== Catena-X ====
==== Catena-X ====
{{#ask: [[HasExactOntologyMatch::~*urn:samm*]] OR [[HasCloseOntologyMatch::~*urn:samm*]]
Not relevant - json is already syntactically conform
|?HasOswId=OSW ID
|?HasExactOntologyMatch=Exact Match
|?HasCloseOntologyMatch=Close Match
|limit=1000
}}
 
===== Web-API =====
<syntaxhighlight lang="text">
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
</syntaxhighlight>
 
===== SPARQL =====
<syntaxhighlight lang="sparql">
PREFIX owl: <http://www.w3.org/2002/07/owl#>
 
SELECT ?subject ?sameAsSubject
WHERE {
  ?subject owl:sameAs ?sameAsSubject .
  FILTER(STRSTARTS(STR(?sameAsSubject), "urn:samm"))
}
</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%2CThing%29%2CSome%28Rel%28%22https%3A//demo.open-semantic-lab.org/id/Property-3AHasExactOntologyMatch%22%2CFwd%2CDet%28An%284%2CModif%28Select%2CUnordered%29%2CThing%29%2CSome%28Filter2%28StartsWith%28%22urn%22%29%2COnlyLiterals%29%29%29%29%29%29%29&sparklis-path=DDDD&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}}


==Structure==
==Structure==
{{Template:Editor/Graph
{{Template:Editor/Graph
| file_name = Battery Passport graph-01
| file_name = Battery Passport graph-01
| page_name = Category:OSWf78783ad5d004d3d9cac079167f55a43
| page_name = Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a
| root = Category:OSWf78783ad5d004d3d9cac079167f55a43
| root = Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a
| uuid = c8e947a2-ac0d-494e-a8a0-15a734c298c0
| uuid = c8e947a2-ac0d-494e-a8a0-15a734c298c0
| roots = Category:OSWf78783ad5d004d3d9cac079167f55a43
| roots = Category:OSW54f58fe92b2148a3904e5fb0f5c1e81a
| 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