-
Notifications
You must be signed in to change notification settings - Fork 42
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 #631 from arago/chat_session
Add chat sessions for CustomerSupport
- Loading branch information
Showing
15 changed files
with
196 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
release: | ||
types: [created] | ||
|
||
name: Build ontology | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
environment: production | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
|
||
- name: prepare single ttl file | ||
run: | | ||
sh validate.sh | ||
sh singleTTL.sh | ||
- name: Publish Asset | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: graphit-ontology.ttl | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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,16 @@ | ||
name: Validate ontology | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: validate ontology | ||
run: | | ||
./validate.sh |
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
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,36 @@ | ||
@prefix ogit.CustomerSupport: <http://www.purl.org/ogit/CustomerSupport/> . | ||
@prefix ogit: <http://www.purl.org/ogit/> . | ||
@prefix dcterms: <http://purl.org/dc/terms/> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
|
||
# https://developer.zendesk.com/rest_api/docs/support/ticket_comments | ||
|
||
ogit.CustomerSupport:ChatMessage | ||
a rdfs:Class ; | ||
rdfs:subClassOf ogit:Entity ; | ||
rdfs:label "ChatMessage" ; | ||
dcterms:description """Represents a servicedesk chat message"""; | ||
dcterms:valid "start=2024-04-30;" ; | ||
dcterms:creator "Leonie Glanzer" ; | ||
ogit:scope "NTO" ; | ||
ogit:parent ogit:Node ; | ||
ogit:mandatory-attributes ( | ||
ogit:message | ||
) ; | ||
ogit:optional-attributes ( | ||
ogit:id # external entity based unique id | ||
ogit:creator # name or id of the sending user | ||
ogit:type # text or file | ||
ogit:source # source system | ||
ogit:sourceId # id of source system | ||
ogit:externalId # id of the message in the source system | ||
ogit:createdAt # timestamp of message creation | ||
ogit:expiresAt # timestamp of message expiration (deletedAt?) | ||
ogit:subject # ? | ||
ogit:summary # ? | ||
) ; | ||
ogit:indexed-attributes ( ) ; | ||
ogit:allowed ( | ||
[ ogit:belongs ogit.CustomerSupport:ChatSession ] | ||
) ; | ||
. |
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,38 @@ | ||
@prefix ogit.CustomerSupport: <http://www.purl.org/ogit/CustomerSupport/> . | ||
@prefix ogit.ServiceManagement: <http://www.purl.org/ogit/ServiceManagement/> . | ||
@prefix ogit: <http://www.purl.org/ogit/> . | ||
@prefix dcterms: <http://purl.org/dc/terms/> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
|
||
# https://developer.zendesk.com/rest_api/docs/support/ticket_comments | ||
|
||
ogit.CustomerSupport:ChatSession | ||
a rdfs:Class ; | ||
rdfs:subClassOf ogit:Entity ; | ||
rdfs:label "ChatSession" ; | ||
dcterms:description """Represents a CustomerSupport chat session"""; | ||
dcterms:valid "start=2024-04-30;" ; | ||
dcterms:creator "Leonie Glanzer" ; | ||
ogit:scope "NTO" ; | ||
ogit:parent ogit:Node ; | ||
ogit:mandatory-attributes ( | ||
ogit:id # external entity based unique id | ||
) ; | ||
ogit:optional-attributes ( | ||
ogit:status # status of the session (AI-Chat or Agent-Chat) | ||
ogit:tenantId # tenant id of the customer user | ||
ogit:source # name of the source system | ||
ogit:sourceId # ID of the source system | ||
ogit:externalId # ID of the session in the source system | ||
ogit:createdAt # timestamp of the chat creation | ||
) ; | ||
ogit:indexed-attributes ( ) ; | ||
ogit:allowed ( | ||
[ ogit:belongs ogit.CustomerSupport:Ticket ] | ||
[ ogit:belongs ogit.ServiceManagement:Ticket ] | ||
[ ogit:belongs ogit.ServiceManagement:Problem ] | ||
[ ogit:belongs ogit.ServiceManagement:Incident ] | ||
[ ogit:belongs ogit.ServiceManagement:ChangeRequest ] | ||
[ ogit:belongs ogit:Organization ] | ||
) ; | ||
. |
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
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
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,14 @@ | ||
@prefix ogit: <http://www.purl.org/ogit/> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix dcterms: <http://purl.org/dc/terms/> . | ||
|
||
ogit:tenantId | ||
a owl:DatatypeProperty; | ||
rdfs:subPropertyOf ogit:Attribute; | ||
rdfs:label "tenantId"; | ||
dcterms:description "The Id of the tenant graph object."; | ||
# For ranges, see http://dublincore.org/documents/dcmi-period/ | ||
dcterms:valid "start=2024-06-24;"; | ||
dcterms:creator "Jens Bartsch"; | ||
. |
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,32 @@ | ||
@prefix ogit.CustomerSupport: <http://www.purl.org/ogit/CustomerSupport/> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix ogit: <http://www.purl.org/ogit/> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix dcterms: <http://purl.org/dc/terms/> . | ||
|
||
ogit:Agent | ||
a rdfs:Class; | ||
rdfs:subClassOf ogit:Entity; | ||
rdfs:label "Agent"; | ||
dcterms:description "An agent."; | ||
# For ranges, see http://dublincore.org/documents/dcmi-period/ | ||
dcterms:valid "start=2015-05-21;"; | ||
dcterms:creator "Jens Bartsch"; | ||
ogit:scope "SGO"; | ||
ogit:parent ogit:Node; | ||
ogit:mandatory-attributes ( | ||
|
||
); | ||
ogit:optional-attributes ( | ||
ogit:id | ||
ogit:name | ||
ogit:description | ||
); | ||
ogit:indexed-attributes ( | ||
|
||
); | ||
ogit:allowed ( | ||
[ ogit:owns ogit.CustomerSupport:ChatSession ] | ||
[ ogit:supports ogit:Organization ] | ||
); | ||
. |
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,12 @@ | ||
#!/bin/sh | ||
|
||
TTLFILE=graphit-ontology.ttl | ||
rm -f $TTLFILE | ||
|
||
|
||
find . -type f -name '*.ttl' -exec cat {} \; -exec echo $'\n' \;> TMP_cat_all.txt | ||
grep "@prefix" TMP_cat_all.txt | awk '{$1=$1}!A[toupper($0)]++' > TMP_prefixed.txt | ||
grep -v "@prefix" TMP_cat_all.txt > TMP_no_prefixes.txt | ||
cat TMP_prefixed.txt TMP_no_prefixes.txt > $TTLFILE | ||
rm TMP_prefixed.txt TMP_no_prefixes.txt TMP_cat_all.txt | ||
echo $TTLFILE 'has been generated.' |
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 @@ | ||
find . -type f ! -name 'graphit-ontology.*' -name "*.ttl" | xargs java -jar bin/ogit-validator.jar |