Skip to content

Commit

Permalink
Merge pull request #11 from zazuko/cleanup
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
BenjaminHofstetter authored Jun 26, 2024
2 parents b3986e2 + 1ed32b3 commit 5bd7c84
Show file tree
Hide file tree
Showing 5 changed files with 175 additions and 17,634 deletions.
165 changes: 128 additions & 37 deletions stack/fuseki-data/blueprint-class-metadata.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,143 @@ PREFIX flux: <https://ld.flux.zazuko.com/>
PREFIX fluxSchema: <https://flux.described.at/>
PREFIX k8s: <https://k8s.described.at/>
PREFIX oci: <https://oci.described.at/>
PREFIX prov: <http://www.w3.org/ns/prov#>

<http://making-sense.info/namespaces/ddi/CleanedVariable> a rdfs:Class;
rdfs:label "Cleaned variable" ;
rdfs:comment "Recoded collected variable" .
ex:Repository a rdfs:Class ;
rdfs:label "Git Repository" ;
rdfs:comment "Repositories in GIT contain a collection of files of various different versions of a Project.";
.

flux:CleanedVariableFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode <http://making-sense.info/namespaces/ddi/CleanedVariable> ;
rdfs:label "Cleaned variable" ;
rdfs:comment "Recoded collected variable" ;
fluxSchema:faIcon "fas fa-calculator" ;
flux:GitRepositoryFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode ex:Repository ;
rdfs:label "Git Repository" ;
rdfs:comment "Repositories in GIT contain a collection of files of various different versions of a Project.";
fluxSchema:faIcon "fab fa-git-square" ;
fluxSchema:colorIndex 3 ;
fluxSchema:searchPrio 3 ;
.

k8s:Cluster a rdfs:Class ;
rdfs:label "Cluster" ;
rdfs:comment "K8S Cluster";
.

flux:ClusterFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode k8s:Cluster ;
rdfs:label "Cluster" ;
rdfs:comment "K8S Cluster";
fluxSchema:faIcon "fas fa-microchip" ;
fluxSchema:colorIndex 6 ;
fluxSchema:searchPrio 3 ;
.

k8s:Namespace a rdfs:Class ;
rdfs:label "K8S Namespace" ;
rdfs:comment "In Kubernetes, namespaces provides a mechanism for isolating groups of resources within a single cluster. Names of resources need to be unique within a namespace, but not across namespaces. Namespace-based scoping is applicable only for namespaced objects (e.g. Deployments, Services, etc) and not for cluster-wide objects (e.g. StorageClass, Nodes, PersistentVolumes, etc)." ;
.

flux:NamespaceFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode k8s:Namespace ;
rdfs:label "K8S Namespace" ;
rdfs:comment "In Kubernetes, namespaces provides a mechanism for isolating groups of resources within a single cluster. Names of resources need to be unique within a namespace, but not across namespaces. Namespace-based scoping is applicable only for namespaced objects (e.g. Deployments, Services, etc) and not for cluster-wide objects (e.g. StorageClass, Nodes, PersistentVolumes, etc)." ;
fluxSchema:faIcon "fas fa-globe" ;
fluxSchema:colorIndex 1 ;
fluxSchema:searchPrio 1 .
fluxSchema:searchPrio 3 ;
.

k8s:Ingress a rdfs:Class;
rdfs:label "Ingress" ;
rdfs:comment "Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster. Traffic routing is controlled by rules defined on the Ingress resource." ;
.

flux:IngressFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode k8s:Ingress ;
rdfs:label "Ingress" ;
rdfs:comment "Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster. Traffic routing is controlled by rules defined on the Ingress resource." ;
fluxSchema:faIcon "fas fa-sign-in-alt" ;
fluxSchema:colorIndex 5 ;
fluxSchema:searchPrio 3 ;
.

<http://making-sense.info/namespaces/ddi/DDIVariable> a rdfs:Class;
rdfs:label "Variable" ;
rdfs:comment "Collected variable" .
k8s:Host a rdfs:Class ;
rdfs:label "Host" ;
rdfs:comment "K8S Host" ;
.

flux:VariableFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode <http://making-sense.info/namespaces/ddi/DDIVariable> ;
rdfs:label "Variable" ;
rdfs:comment "Collected variable" ;
fluxSchema:faIcon "fas fa-subscript" ;
flux:HostFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode k8s:Host ;
rdfs:label "Host" ;
rdfs:comment "K8S Host" ;
fluxSchema:faIcon "fas fa-server" ;
fluxSchema:colorIndex 2 ;
fluxSchema:searchPrio 1 .
fluxSchema:searchPrio 3 ;
.

<http://making-sense.info/namespaces/ddi/ScriptExecution> a rdfs:Class;
rdfs:label "Script execution" ;
rdfs:comment "Script ran to calculate the dervied variable" .
k8s:Deployment a rdfs:Class ;
rdfs:label "Deployment" ;
rdfs:comment "K8S Deployments" ;
.

flux:ScriptExecutionFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode <http://making-sense.info/namespaces/ddi/ScriptExecution> ;
rdfs:label "Script execution" ;
rdfs:comment "Script ran to calculate the dervied variable" ;
fluxSchema:faIcon "fas fa-screwdriver-wrench" ;
flux:DeploymentFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode k8s:Deployment ;
rdfs:label "Deployment" ;
rdfs:comment "K8S Deployments" ;
fluxSchema:faIcon "fa-solid fa-puzzle-piece" ;
fluxSchema:colorIndex 3 ;
fluxSchema:searchPrio 3 .
fluxSchema:searchPrio 3 ;
.

prov:SoftwareAgent a rdfs:Class;
rdfs:label "Software agent" ;
rdfs:comment "Agent running the script execution" .
k8s:StatefulSet a rdfs:Class ;
rdfs:label "StatefulSet" ;
rdfs:comment "K8S StatefulSets" ;
.

flux:SoftwareAgentFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode prov:SoftwareAgent ;
rdfs:label "Software agent" ;
rdfs:comment "Agent running the script execution";
fluxSchema:faIcon "fas fa-gears" ;
flux:StatefulSetFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode k8s:StatefulSet ;
rdfs:label "StatefulSet" ;
rdfs:comment "K8S StatefulSets" ;
fluxSchema:faIcon "fas fa-screwdriver" ;
fluxSchema:colorIndex 4 ;
fluxSchema:searchPrio 4 .
fluxSchema:searchPrio 3 ;
.

oci:Image a rdfs:Class ;
rdfs:label "Image" ;
rdfs:comment "K8S Images" ;
.

flux:ImageFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode oci:Image ;
rdfs:label "Image" ;
rdfs:comment "K8S Images" ;
fluxSchema:faIcon "fab fa-docker" ;
fluxSchema:colorIndex 5 ;
fluxSchema:searchPrio 3 ;
.

oci:Repository a rdfs:Class ;
rdfs:label "OCI Repository" ;
rdfs:comment "OCI Repositories" ;
.

flux:OciRepositoryFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode oci:Repository ;
rdfs:label "OCI Repository" ;
rdfs:comment "OCI Repositories" ;
fluxSchema:faIcon "fas fa-database" ;
fluxSchema:colorIndex 6 ;
fluxSchema:searchPrio 3 ;
.

oci:Registry a rdfs:Class ;
rdfs:label "OCI Registry" ;
rdfs:comment "OCI Registries" ;
.

flux:RegistryFluxClassInstance a fluxShape:ClassMetadataShape ;
sh:targetNode oci:Registry ;
rdfs:label "OCI Registry" ;
rdfs:comment "OCI Registries" ;
fluxSchema:faIcon "fas fa-registered" ;
fluxSchema:colorIndex 7 ;
fluxSchema:searchPrio 3 ;
.
3 changes: 1 addition & 2 deletions stack/fuseki-data/blueprint-detail-metadata.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,4 @@ flux:DeploymentAnnotationTableShape a sh:NodeShape ;
sh:name "Value" ;
sh:order 20;
] ;
.

.
Empty file.
65 changes: 46 additions & 19 deletions stack/fuseki-data/blueprint-link-metadata.ttl
Original file line number Diff line number Diff line change
@@ -1,24 +1,51 @@
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ex: <http://schema.example.org/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX schema: <http://schema.org/>
PREFIX fluxShape: <https://ld.flux.zazuko.com/shapes/metadata/>
PREFIX flux: <https://ld.flux.zazuko.com/>
PREFIX fluxSchema: <https://flux.described.at/>
PREFIX prov: <http://www.w3.org/ns/prov#>

flux:CleanedVariableToCleanedVariableLink a sh:PropertyShape, fluxSchema:Link ;
sh:name "was derived from" ;
sh:path prov:wasDerivedFrom;
sh:class <http://making-sense.info/namespaces/ddi/CleanedVariable> ;
sh:targetClass <http://making-sense.info/namespaces/ddi/CleanedVariable> .

flux:CleanedVariableToVariableLink a sh:PropertyShape, fluxSchema:Link ;
sh:name "was derived from" ;
sh:path prov:wasDerivedFrom;
sh:class <http://making-sense.info/namespaces/ddi/DDIVariable>;
sh:targetClass <http://making-sense.info/namespaces/ddi/CleanedVariable> .

flux:CleanedVariableToScriptExecutionLink a sh:PropertyShape, fluxSchema:Link ;
sh:name "was generated by" ;
sh:path prov:wasGeneratedBy;
sh:class <http://making-sense.info/namespaces/ddi/ScriptExecution> ;
sh:targetClass <http://making-sense.info/namespaces/ddi/CleanedVariable> .
PREFIX k8s: <https://k8s.described.at/>
PREFIX oci: <https://oci.described.at/>


k8s:Cluster a rdfs:Class .

flux:NamespaceToClusterLink a sh:PropertyShape, fluxSchema:Link ;
sh:name "runs on" ;
sh:path k8s:cluster ;
sh:class k8s:Cluster ;
sh:targetClass k8s:Namespace ;
.


flux:DeploymentToNamespaceLink a sh:PropertyShape, fluxSchema:Link ;
sh:name "belonogs to" ;
sh:path k8s:namespace ;
sh:class k8s:Namespace ;
sh:targetClass k8s:Deployment ;
.


flux:DeploymentToImageLink a sh:PropertyShape, fluxSchema:Link ;
sh:name "container image" ;
sh:path k8s:image ;
sh:class oci:Image ;
sh:targetClass k8s:Deployment ;
.


flux:ImagetoOciRepositoryLink a sh:PropertyShape, fluxSchema:Link ;
sh:name "hosted by" ;
sh:path oci:repository ;
sh:class oci:Repository ;
sh:targetClass oci:Image ;
.


flux:OciRepositoryToRegistryLink a sh:PropertyShape, fluxSchema:Link ;
sh:name "hosted by" ;
sh:path oci:registry ;
sh:class oci:Registry ;
sh:targetClass oci:Repository ;
.
Loading

0 comments on commit 5bd7c84

Please sign in to comment.