From 515b98a5b2f6d5bf46361ffa5aa48fe61837c778 Mon Sep 17 00:00:00 2001 From: Fabien Amarger <881739+Murloc6@users.noreply.github.com> Date: Thu, 8 Feb 2024 10:58:41 +0100 Subject: [PATCH] feat: Considering owl:unionOf for rdfs:domain and rdfs:range see https://github.com/dgarijo/Widoco/issues/379 --- src/main/resources/lode/extraction.xsl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/lode/extraction.xsl b/src/main/resources/lode/extraction.xsl index ce71421..1fa54b6 100644 --- a/src/main/resources/lode/extraction.xsl +++ b/src/main/resources/lode/extraction.xsl @@ -1322,7 +1322,7 @@ http://www.oxygenxml.com/ns/doc/xsl "> + select="/rdf:RDF/(owl:ObjectProperty|rdf:Property|owl:DatatypeProperty|owl:AnnotationProperty)[some $res in (rdfs:domain|schema:domainIncludes)/(@*:resource|(owl:Class|rdfs:Class|owl:Class/owl:unionOf/rdf:Description)/@*:about) satisfies $res = $about]/(@*:about|@*:ID)"/>
@@ -1345,7 +1345,7 @@ http://www.oxygenxml.com/ns/doc/xsl "> + select="/rdf:RDF/(owl:ObjectProperty|rdf:Property|owl:DatatypeProperty|owl:AnnotationProperty)[some $res in (rdfs:range|schema:rangeIncludes)/(@*:resource|(owl:Class|rdfs:Class|owl:Class/owl:unionOf/rdf:Description)/@*:about) satisfies $res = $about]/(@*:about|@*:ID)"/>
@@ -2094,7 +2094,7 @@ http://www.oxygenxml.com/ns/doc/xsl "> + select="exists($rdf/(owl:ObjectProperty|owl:DatatypeProperty|owl:AnnotationProperty)[some $res in (rdfs:domain|schema:domainIncludes)/(@*:resource|(owl:Class|rdfs:Class|owl:Class/owl:unionOf/rdf:Description)/@*:about) satisfies $res = $el/(@*:about|@*:ID)])"/> @@ -2102,7 +2102,7 @@ http://www.oxygenxml.com/ns/doc/xsl "> + select="exists($rdf/(if ($type = 'property') then owl:DatatypeProperty | owl:ObjectProperty else owl:AnnotationProperty)[some $res in rdfs:subPropertyOf/(@*:resource|(owl:Class|rdfs:Class|owl:Class/owl:unionOf/rdf:Description)/@*:about) satisfies $res = $el/(@*:about|@*:ID)])"/>