|
676 | 676 | Represents a Expression Map. |
677 | 677 | """ ; |
678 | 678 | sh:message """ |
679 | | - Expression Map requires one rml:template or one rml:constant or one |
| 679 | + Expression Map may require one rml:template or one rml:constant or one |
680 | 680 | rml:reference. |
681 | 681 | """ ; |
682 | | - sh:property [ rdfs:label "template/constant/reference/returnMap/functionExecution" ; |
| 682 | + sh:or ( [ sh:not [ sh:property [ sh:minCount 1 ; |
| 683 | + sh:path rml:returnMap ] ] ] [ sh:property [ sh:maxCount 1 ; |
| 684 | + sh:minCount 1 ; |
| 685 | + sh:path rml:returnMap ], |
| 686 | + [ sh:maxCount 1 ; |
| 687 | + sh:minCount 1 ; |
| 688 | + sh:path rml:functionExecution ] ] ) ; |
| 689 | + sh:property [ rdfs:label "template/constant/reference/functionExecution" ; |
683 | 690 | rdfs:comment """ |
684 | | - Exactly one rml:template, one rml:constant, one rml:reference, |
685 | | - one rml:returnMap, or one rml:functionExecution is required. |
| 691 | + Only one rml:template, one rml:constant, one rml:reference, |
| 692 | + or one rml:functionExecution is allowed. rml:returnMap is only allowed if rml:functionExecution is present. |
686 | 693 | """ ; |
687 | 694 | sh:maxCount 1 ; |
688 | 695 | sh:message """ |
689 | 696 | Exactly one rml:template, one rml:constant, one rml:reference, |
690 | 697 | one rml:returnMap, or one rml:functionExecution is required. |
691 | 698 | """ ; |
692 | | - sh:minCount 1 ; |
693 | | - sh:path [ sh:alternativePath ( rml:template rml:constant rml:reference rml:returnMap rml:functionExecution ) ] ; |
| 699 | + sh:path [ sh:alternativePath ( rml:template rml:constant rml:reference rml:functionExecution ) ] ; |
694 | 700 | sh:targetSubjectsOf rml:constant, |
695 | 701 | rml:functionExecution, |
696 | 702 | rml:reference, |
697 | | - rml:returnMap, |
698 | 703 | rml:template ], |
699 | | - [ rdfs:label "reference" ; |
700 | | - rdfs:comment """ |
701 | | - A reference rml:reference is used to refer to a column in case of |
702 | | - databases, a record in case of CSV or TSV data source, an element in |
703 | | - case of XML data source, an object in case of a JSON data source, etc. |
704 | | -
|
705 | | - A reference must be a valid identifier, considering the reference |
706 | | - formulation (rml:referenceFormulation) specified. The reference can be |
707 | | - an absolute path, or a path relative to the iterator specified at the |
708 | | - logical source. |
709 | | - """ ; |
710 | | - sh:datatype xsd:string ; |
711 | | - sh:message """ |
712 | | - rml:reference must be a string. |
713 | | - """ ; |
714 | | - sh:nodeKind sh:Literal ; |
715 | | - sh:path rml:reference ; |
716 | | - sh:targetSubjectsOf rml:reference ], |
717 | 704 | [ rdfs:label "returnMap" ; |
718 | 705 | rdfs:comment """ |
719 | 706 | A Return Map rml:returnMap is used to define the return values of a FnO |
|
761 | 748 | rml:constant must be an IRI or Literal. |
762 | 749 | """ ; |
763 | 750 | sh:path rml:constant ; |
764 | | - sh:targetSubjectsOf rml:constant ] . |
| 751 | + sh:targetSubjectsOf rml:constant ], |
| 752 | + [ rdfs:label "reference" ; |
| 753 | + rdfs:comment """ |
| 754 | + A reference rml:reference is used to refer to a column in case of |
| 755 | + databases, a record in case of CSV or TSV data source, an element in |
| 756 | + case of XML data source, an object in case of a JSON data source, etc. |
| 757 | +
|
| 758 | + A reference must be a valid identifier, considering the reference |
| 759 | + formulation (rml:referenceFormulation) specified. The reference can be |
| 760 | + an absolute path, or a path relative to the iterator specified at the |
| 761 | + logical source. |
| 762 | + """ ; |
| 763 | + sh:datatype xsd:string ; |
| 764 | + sh:message """ |
| 765 | + rml:reference must be a string. |
| 766 | + """ ; |
| 767 | + sh:nodeKind sh:Literal ; |
| 768 | + sh:path rml:reference ; |
| 769 | + sh:targetSubjectsOf rml:reference ] . |
765 | 770 |
|
766 | 771 | <http://w3id.org/rml/shapes/RMLLogicalTargetPropertiesShape> a sh:PropertyShape ; |
767 | 772 | rdfs:label "logicalTarget" ; |
|
0 commit comments