-
Notifications
You must be signed in to change notification settings - Fork 0
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 #6 from ucoProject/Kinds-and-UCO-Issue-567
Apply EndurantType hierarchy for Qualities of vehicle example
- Loading branch information
Showing
7 changed files
with
275 additions
and
2 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
http://example.org/ontology/uco-gufo ${top_srcdir}/ontology/uco-gufo.ttl | ||
http://example.org/shapes/gufo ${top_srcdir}/dependencies/CDO-Shapes-gufo/shapes/sh-gufo.ttl | ||
http://example.org/shapes/sh-uco-gufo ${top_srcdir}/shapes/sh-uco-gufo.ttl | ||
http://purl.org/nemo/gufo#/1.0.0 ${top_srcdir}/dependencies/CDO-Shapes-gufo/dependencies/gufo.ttl |
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,84 @@ | ||
#!/usr/bin/make -f | ||
|
||
# Portions of this file contributed by NIST are governed by the following | ||
# statement: | ||
# | ||
# This software was developed at the National Institute of Standards | ||
# and Technology by employees of the Federal Government in the course | ||
# of their official duties. Pursuant to title 17 Section 105 of the | ||
# United States Code this software is not subject to copyright | ||
# protection and is in the public domain. NIST assumes no | ||
# responsibility whatsoever for its use by other parties, and makes | ||
# no guarantees, expressed or implied, about its quality, | ||
# reliability, or any other characteristic. | ||
# | ||
# We would appreciate acknowledgement if the software is used. | ||
|
||
SHELL := /bin/bash | ||
|
||
top_srcdir := $(shell cd .. ; pwd) | ||
|
||
uco_srcdir := $(top_srcdir)/dependencies/UCO | ||
|
||
RDF_TOOLKIT_JAR := $(uco_srcdir)/lib/rdf-toolkit.jar | ||
|
||
ttl_basenames := $(wildcard sh-*.ttl) | ||
|
||
check_ttl_targets := $(foreach ttl_basename,$(ttl_basenames),check-$(ttl_basename)) | ||
|
||
all: \ | ||
catalog-v001.xml | ||
|
||
.PHONY: \ | ||
check-%.ttl | ||
|
||
.PRECIOUS: \ | ||
.check-%.ttl | ||
|
||
$(RDF_TOOLKIT_JAR): | ||
@echo "DEBUG:shapes/Makefile:top_srcdir=$(top_srcdir)" >&2 | ||
@echo "ERROR:shapes/Makefile:rdf-toolkit.jar not found. Did you run `make` from the top source directory?" >&2 | ||
@test -r $@ | ||
|
||
.check-%.ttl: \ | ||
%.ttl \ | ||
$(RDF_TOOLKIT_JAR) | ||
java -jar $(RDF_TOOLKIT_JAR) \ | ||
--inline-blank-nodes \ | ||
--source $< \ | ||
--source-format turtle \ | ||
--target _$@ \ | ||
--target-format turtle | ||
mv _$@ $@ | ||
|
||
catalog-v001.xml: \ | ||
$(top_srcdir)/.venv.done.log \ | ||
$(top_srcdir)/etc/domain_directories.tsv \ | ||
$(top_srcdir)/etc/dependency_files.tsv \ | ||
$(uco_srcdir)/ontology/uco/master/catalog-v001.xml \ | ||
$(uco_srcdir)/src/create-catalog-v001.xml.py | ||
rm -f _$@ | ||
source $(top_srcdir)/venv/bin/activate \ | ||
&& python3 $(uco_srcdir)/src/create-catalog-v001.xml.py \ | ||
--catalog-xml $(uco_srcdir)/ontology/uco/master/catalog-v001.xml \ | ||
_$@ \ | ||
$(top_srcdir)/etc/domain_directories.tsv \ | ||
$(top_srcdir)/etc/dependency_files.tsv \ | ||
"$(top_srcdir)" \ | ||
$(ttl_basenames) | ||
mv _$@ $@ | ||
|
||
check: \ | ||
$(check_ttl_targets) \ | ||
catalog-v001.xml | ||
|
||
check-%.ttl: \ | ||
%.ttl \ | ||
.check-%.ttl | ||
diff $^ \ | ||
|| (echo "ERROR:shapes/Makefile:The local $< does not match the normalized version. If the above reported changes look fine, run 'cp .check-$< $<' while in the sub-folder shapes/ to get a file ready to commit to Git." >&2 ; exit 1) | ||
|
||
clean: | ||
@rm -f \ | ||
_* \ | ||
catalog-v001.xml |
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,26 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public"> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/CDO-Shapes-gufo/dependencies/gufo.ttl" name="http://purl.org/nemo/gufo#/1.0.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/dependencies/collections-ontology/collections.owl" name="http://purl.org/co"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/dependencies/error/docs/current/error.ttl" name="http://purl.org/spar/error"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/co/co.ttl" name="https://ontology.unifiedcyberontology.org/co/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/owl/owl.ttl" name="https://ontology.unifiedcyberontology.org/owl/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/action/action.ttl" name="https://ontology.unifiedcyberontology.org/uco/action/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/analysis/analysis.ttl" name="https://ontology.unifiedcyberontology.org/uco/analysis/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/configuration/configuration.ttl" name="https://ontology.unifiedcyberontology.org/uco/configuration/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/core/core.ttl" name="https://ontology.unifiedcyberontology.org/uco/core/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/identity/identity.ttl" name="https://ontology.unifiedcyberontology.org/uco/identity/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/location/location.ttl" name="https://ontology.unifiedcyberontology.org/uco/location/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/marking/marking.ttl" name="https://ontology.unifiedcyberontology.org/uco/marking/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/master/uco.ttl" name="https://ontology.unifiedcyberontology.org/uco/uco/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/observable/observable.ttl" name="https://ontology.unifiedcyberontology.org/uco/observable/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/pattern/pattern.ttl" name="https://ontology.unifiedcyberontology.org/uco/pattern/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/role/role.ttl" name="https://ontology.unifiedcyberontology.org/uco/role/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/time/time.ttl" name="https://ontology.unifiedcyberontology.org/uco/time/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/tool/tool.ttl" name="https://ontology.unifiedcyberontology.org/uco/tool/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/types/types.ttl" name="https://ontology.unifiedcyberontology.org/uco/types/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/victim/victim.ttl" name="https://ontology.unifiedcyberontology.org/uco/victim/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../dependencies/UCO/ontology/uco/vocabulary/vocabulary.ttl" name="https://ontology.unifiedcyberontology.org/uco/vocabulary/1.3.0"/> | ||
<uri id="User Entered Import Resolution" uri="../ontology/uco-gufo.ttl" name="http://example.org/ontology/uco-gufo"/> | ||
<uri id="User Entered Import Resolution" uri="sh-uco-gufo.ttl" name="http://example.org/shapes/sh-uco-gufo"/> | ||
</catalog> |
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,41 @@ | ||
# imports: http://example.org/ontology/uco-gufo | ||
|
||
@prefix drafting: <http://example.org/ontology/drafting/> . | ||
@prefix gufo: <http://purl.org/nemo/gufo#> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix sh-uco-gufo: <http://example.org/shapes/sh-uco-gufo/> . | ||
@prefix uco-observable: <https://ontology.unifiedcyberontology.org/uco/observable/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
<http://example.org/shapes/sh-uco-gufo> | ||
a owl:Ontology ; | ||
owl:imports <http://example.org/ontology/uco-gufo> ; | ||
. | ||
|
||
sh-uco-gufo:Bearing-shape | ||
a sh:NodeShape ; | ||
rdfs:seeAlso <https://github.com/ucoProject/UCO/issues/567> ; | ||
sh:property [ | ||
a sh:PropertyShape ; | ||
rdfs:comment "This shape is more suited for any gUFO Object + UCO Object with a physical projection, but such a class is not defined yet in gUFO or UCO."@en ; | ||
sh:class uco-observable:Device ; | ||
sh:path gufo:inheresIn ; | ||
] ; | ||
sh:targetClass drafting:Bearing ; | ||
. | ||
|
||
sh-uco-gufo:Velocity-shape | ||
a sh:NodeShape ; | ||
rdfs:seeAlso <https://github.com/ucoProject/UCO/issues/567> ; | ||
sh:property [ | ||
a sh:PropertyShape ; | ||
rdfs:comment "This shape is more suited for any gUFO Object + UCO Object with a physical projection, but such a class is not defined yet in gUFO or UCO."@en ; | ||
sh:class uco-observable:Device ; | ||
sh:path gufo:inheresIn ; | ||
] ; | ||
sh:targetClass drafting:Velocity ; | ||
. | ||
|
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