-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from catenax-ng/fix/75-provisioning-agent-char…
…t-entrypoint fix: problems with busybox default shell on linux/amd64.
- Loading branch information
Showing
7 changed files
with
253 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
@prefix cx: <https://w3id.org/catenax/ontology#> . | ||
@prefix dc: <http://purl.org/dc/elements/1.1/> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix schema: <https://schema.org/> . | ||
@prefix skos: <http://www.w3.org/2004/02/skos/core#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix json: <https://json-schema.org/draft/2020-12/schema#> . | ||
|
||
json:Object a rdfs:Datatype. | ||
|
||
cx:CxOntology a owl:Ontology ; | ||
dc:creator "Catena-X Knowledge Agents Team" ; | ||
dc:date "2022-11-29"^^xsd:date ; | ||
dc:description "Catena-X Ontology for the Autmotive Industry." ; | ||
dc:title "Catena-X Ontology" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!-- | ||
* Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
<rdf:RDF xmlns="https://w3id.org/catenax/ontology/#" | ||
xml:base="https://w3id.org/catenax/ontology/" | ||
xmlns:owl="http://www.w3.org/2002/07/owl#" | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:xml="http://www.w3.org/XML/1998/namespace" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#" | ||
xmlns:json="https://json-schema.org/draft/2020-12/schema#" | ||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> | ||
<owl:Ontology rdf:about="https://w3id.org/catenax/ontology/"/> | ||
<rdf:Description rdf:about="https://json-schema.org/draft/2020-12/schema#Object"> | ||
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Datatype"/> | ||
</rdf:Description> | ||
</rdf:RDF> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
title="Catena-X Agent Provisioning Demo" | ||
|
||
[[tabGroups]] | ||
|
||
name="Example Queries" | ||
|
||
[[tabGroups.tabs]] | ||
|
||
name="Diagnosis Skill" | ||
query=""" | ||
PREFIX cx: <https://w3id.org/catenax/ontology#> | ||
PREFIX cx-diag: <https://w3id.org/catenax/ontology/diagnosis#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT ?reason ?code ?description ?version ?partend ?partcat ?partclass WHERE { | ||
# Select Business Partner | ||
?Oem cx:BPNL "BPNL00000003COJN". | ||
# Search for Trouble Codes of the Business Partner | ||
# related to a cause in the "Kabelbaum" | ||
?Dtc rdf:type cx-diag:DTC. | ||
?Dtc cx:provisionedBy ?Oem. | ||
?Dtc cx-diag:PossibleCauses ?reason. | ||
FILTER contains(?reason,"Kabelbaum"). | ||
?Dtc cx-diag:Code ?code. | ||
?Dtc cx-diag:Description ?description. | ||
?Dtc cx-diag:Version ?version. | ||
# Navigate to the affected parts | ||
# and show only parts with a classification "Powertrain" | ||
?Dtc cx-diag:affects ?Part. | ||
?Part cx-diag:Category ?partcat. | ||
?Part cx-diag:EnDenomination ?partend. | ||
?Part cx-diag:Classification ?partclass. | ||
FILTER contains(?partclass,'Powertrain'). | ||
} LIMIT 40 | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Setup In-Memory Database with the trouble codes | ||
jdbc.url=jdbc:h2:file:/opt/ontop/database/db;INIT=RUNSCRIPT FROM '/opt/ontop/data/dtc.sql' | ||
jdbc.driver=org.h2.Driver |
Oops, something went wrong.