Skip to content

Instantly share code, notes, and snippets.

View georghildebrand's full-sized avatar

ghildebrand georghildebrand

  • EU
View GitHub Profile
@georghildebrand
georghildebrand / smart_factory.ttl
Last active December 16, 2022 10:47
Short information model of a simple smart factory shop floor process in turtle ttl
@prefix sf: <http://example.com/smartfactory#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://www.w3.org/2002/07/owl#> .
[ rdf:type owl:Ontology
] .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix building: <http://example.com/ontologies/building#> .
@prefix equipment: <http://example.com/ontologies/equipment#> .
@base <http://www.w3.org/2002/07/owl#> .
[ rdf:type owl:Ontology
@georghildebrand
georghildebrand / analyse_robot_resource_usage_graph.py
Last active December 21, 2022 10:30
Quick resource collision detection in recursive and non recursive way
graph = {
"start": {
"resources": ["robot1", "robot2"],
"children": ["process1", "process2"]
},
"process1": {
"resources": ["robot1"],
"children": ["subprocess1", "subprocess2"]
},
"process2": {