From 56a4642800510dadd50e5d55087606719e63bf40 Mon Sep 17 00:00:00 2001 From: Clemens Date: Fri, 28 Jul 2023 12:02:47 +0200 Subject: [PATCH] Added ttl to rdf example --- doc/id_ttl_to_rdf.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/id_ttl_to_rdf.md diff --git a/doc/id_ttl_to_rdf.md b/doc/id_ttl_to_rdf.md new file mode 100644 index 0000000..d771931 --- /dev/null +++ b/doc/id_ttl_to_rdf.md @@ -0,0 +1,32 @@ +```ttl +as:id a owl:DatatypeProperty , + owl:FunctionalProperty, + owl:DeprecatedProperty ; + rdfs:label "id"@en ; + rdfs:range xsd:anyURI ; + rdfs:domain [ + a owl:Class ; + owl:unionOf (as:Link as:Object) + ] . +``` + +This ttl def can be written as rdf N-Triples: + +``` +as:id rdf:type owl:DatatypeProperty . +as:id rdf:type owl:FunctionalProperty . +as:id rdf:type owl:DeprecatedProperty . + +as:id rdfs:label "id"@en . + +as:id rdfs:range xsd:anyURI . + +as:id rdfs:domain _:do . +_:do rdf:type owl:Class . +_:do owl:unionOf (as:Link as:Object) . + +--- + +_:Object as:id "http://an.uri" +_:Object as:type _:do +``` \ No newline at end of file