[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (LEGALRULEML-13) XSLT for Phase 1+2+3 conversion from LegalRuleML to RDF
[ https://issues.oasis-open.org/browse/LEGALRULEML-13?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tara Athan updated LEGALRULEML-13: ---------------------------------- Proposal: A draft XSLT (triplifyMerger.xsl) will be committed. The results of the XSLT when applied to the validated LegalRuleML instantances in examples/test_triples (normalized serialization) will also be committed, in examples/triplesCollection, and validated as RDF/XML . The triplifyMerger XSLT copies the triplyCollection XSLT and adds some templates, with higher priority, to implement the exceptional handling of Nodes that have both a keyref attribute and modifying properties, as attributes, child elements, text content or all of these. The implementation uses the user-defined function feature of XSLT 2.0 (xsl:function) to create a function that checks if an XML node is a Node that requires merging of a key-referenced element plus the modifying attributes and/or content. In particular, the function returns true if all of the following are true: 1. local name must start with capital letter 2. the node must have a keyref attribute 3. the node must have at least one child element, text node or attribute that is not keyref This function is used to implement the following template2: 1. for either lrml or ruleml namespace, create an rdf:Resource node to accept a key attribute (which becomes rdf:ID), and containing a mergerOf collection that references the value of keyref as well as transforms the original element, without the key attribute. was: A draft XSLT (triplifyMerger.xsl) will be committed. The results of the XSLT when applied to the validated LegalRuleML instantances in examples/test_triples (normalized serialization) will also be committed, in examples/triplesCollection, and validated as RDF/XML . The triplifyMerger XSLT copies the triplyCollection XSLT and adds some templates, with higher priority, to implement the exceptional handling of Nodes that have both a keyref attribute and modifying properties, as attributes, child elements, text content or all of these. The implementation uses the user-defined function feature of XSLT 2.0 (xsl:function) to create a function that checks if an XML node is a Node that requires merging of a key-referenced element plus the modifying attributes and/or content. In particular, the function returns true if all of the following are true: 1. local name must start with capital letter 2. the node must have a keyref attribute 3. the node must have at least one child element, text node or attribute that is not keyref This function is used to implement the following templates > XSLT for Phase 1+2+3 conversion from LegalRuleML to RDF > ------------------------------------------------------- > > Key: LEGALRULEML-13 > URL: https://issues.oasis-open.org/browse/LEGALRULEML-13 > Project: OASIS LegalRuleML TC > Issue Type: Improvement > Components: XSLT for conversion to RDF > Reporter: Tara Athan > Assignee: Tara Athan > > This stylesheet generates valid RDF/XML if the input meets the preconditions. > There is no loss or ambiguity of information except: > 1. Attributes other than @index on edge elements with child or text content will be ignored. This is the desired behavior- ideally, the normalization transformation will not generate such attributes. > Input Preconditions > 1. All CURIES have been processed into absolute IRIs > (e.g. using xslt as in https://apache.googlesource.com/stanbol/+/9b61625545e2ba6b903ea0752dcd20656bada822/enhancer/engines/xmpextractor/src/main/resources/xslt/rdfa.xslt) > 2. The document is in the normalized form (e.g. after applying an XSLT normalizer.) including: > a. Collections may not be empty unless they have a keyref attribute. -- This message was sent by Atlassian JIRA (v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]