Endpoint: MijnProduct-1

Edit Request log Unarchive Delete

Your specially constructed endpoint is right here.

Request URL: https://translate.lab.semantic-treehouse.nl/api/14

Format: json

Output format: turtle

Response URL: https://httpbin.org/post

Headers: RML:
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .

[]
  rml:logicalSource [
    rml:source "http://www.example.com/root" ;
    rml:referenceFormulation ql:XPath ;
    rml:iterator "/MijnPrijsCatalogus"
  ] ;
  rr:subjectMap [
    rr:termType rr:BlankNode ;
    rr:class <http://ns.ketenstandaard.nl/sales/v005#PriceCatalogueType>
  ] ;
  rr:predicateObjectMap [
    rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceCatalogueType_Currency> ;
    rr:objectMap [ rml:reference "Currency" ]
  ], [
    rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceCatalogueType_Buyer> ;
    rr:objectMap [
      rr:parentTriplesMap [
        rml:logicalSource [
          rml:source "http://www.example.com/root" ;
          rml:referenceFormulation ql:XPath ;
          rml:iterator "/MijnPrijsCatalogus/Buyer"
        ] ;
        rr:subjectMap [
          rr:termType rr:BlankNode ;
          rr:class <http://ns.ketenstandaard.nl/sales/v005#PartyWithContactType>
        ] ;
        rr:predicateObjectMap [
          rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PartyWithContactType_GLN> ;
          rr:objectMap [ rml:reference "GLN" ]
        ]
      ] ;
      rr:joinCondition [
        rr:child "." ;
        rr:parent ".."
      ]
    ]
  ], [
    rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceCatalogueType_Grouping> ;
    rr:objectMap [
      rr:parentTriplesMap [
        rml:logicalSource [
          rml:source "http://www.example.com/root" ;
          rml:referenceFormulation ql:XPath ;
          rml:iterator "/MijnPrijsCatalogus/Grouping"
        ] ;
        rr:subjectMap [
          rr:termType rr:BlankNode ;
          rr:class <http://ns.ketenstandaard.nl/sales/v005#GroupingType>
        ] ;
        rr:predicateObjectMap [
          rr:predicate <http://ns.ketenstandaard.nl/sales/v005#GroupingType_TradeItemLine> ;
          rr:objectMap [
            rr:parentTriplesMap [
              rml:logicalSource [
                rml:source "http://www.example.com/root" ;
                rml:referenceFormulation ql:XPath ;
                rml:iterator "/MijnPrijsCatalogus/Grouping/TradeItemLine"
              ] ;
              rr:subjectMap [
                rr:termType rr:BlankNode ;
                rr:class <http://ns.ketenstandaard.nl/sales/v005#TradeItemLineType>
              ] ;
              rr:predicateObjectMap [
                rr:predicate <http://ns.ketenstandaard.nl/sales/v005#TradeItemLineType_PriceInformation> ;
                rr:objectMap [
                  rr:parentTriplesMap [
                    rml:logicalSource [
                      rml:source "http://www.example.com/root" ;
                      rml:referenceFormulation ql:XPath ;
                      rml:iterator "/MijnPrijsCatalogus/Grouping/TradeItemLine/PriceInformation"
                    ] ;
                    rr:subjectMap [
                      rr:termType rr:BlankNode ;
                      rr:class <http://ns.ketenstandaard.nl/sales/v005#PriceInformationType_Catalogue>
                    ] ;
                    rr:predicateObjectMap [
                      rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceInformationType_Catalogue_PriceBase> ;
                      rr:objectMap [
                        rr:parentTriplesMap [
                          rml:logicalSource [
                            rml:source "http://www.example.com/root" ;
                            rml:referenceFormulation ql:XPath ;
                            rml:iterator "/MijnPrijsCatalogus/Grouping/TradeItemLine/PriceInformation/PriceBase"
                          ] ;
                          rr:subjectMap [
                            rr:termType rr:BlankNode ;
                            rr:class <http://ns.ketenstandaard.nl/sales/v005#PriceBaseType>
                          ] ;
                          rr:predicateObjectMap [
                            rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceBaseType_NumberOfUnitsInPriceBasis> ;
                            rr:objectMap [ rml:reference "NumberOfUnitsInPriceBasis" ]
                          ], [
                            rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceBaseType_PriceBasisUoM> ;
                            rr:objectMap [ rml:reference "PriceBasisUoM" ]
                          ]
                        ] ;
                        rr:joinCondition [
                          rr:child "." ;
                          rr:parent ".."
                        ]
                      ]
                    ], [
                      rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceInformationType_Catalogue_GrossPrice> ;
                      rr:objectMap [ rml:reference "GrossPrice" ]
                    ], [
                      rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceInformationType_Catalogue_StartDatePriceInformation> ;
                      rr:objectMap [ rml:reference "StartDatePriceInformation" ]
                    ], [
                      rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceInformationType_Catalogue_NetPrice> ;
                      rr:objectMap [ rml:reference "NetPrice" ]
                    ]
                  ] ;
                  rr:joinCondition [
                    rr:child "." ;
                    rr:parent ".."
                  ]
                ]
              ], [
                rr:predicate <http://ns.ketenstandaard.nl/sales/v005#TradeItemLineType_MultiLanguageTradeItemDescription> ;
                rr:objectMap [
                  rr:parentTriplesMap [
                    rml:logicalSource [
                      rml:source "http://www.example.com/root" ;
                      rml:referenceFormulation ql:XPath ;
                      rml:iterator "/MijnPrijsCatalogus/Grouping/TradeItemLine/MultiLanguageTradeItemDescription"
                    ] ;
                    rr:subjectMap [
                      rr:termType rr:BlankNode ;
                      rr:class <http://ns.ketenstandaard.nl/sales/v005#MultiLanguageTradeItemDescriptionType>
                    ] ;
                    rr:predicateObjectMap [
                      rr:predicate <http://ns.ketenstandaard.nl/sales/v005#MultiLanguageTradeItemDescriptionType_TradeItemDescription> ;
                      rr:objectMap [
                        rr:parentTriplesMap [
                          rml:logicalSource [
                            rml:source "http://www.example.com/root" ;
                            rml:referenceFormulation ql:XPath ;
                            rml:iterator "/MijnPrijsCatalogus/Grouping/TradeItemLine/MultiLanguageTradeItemDescription/TradeItemDescription"
                          ] ;
                          rr:subjectMap [
                            rr:termType rr:BlankNode ;
                            rr:class <http://ns.ketenstandaard.nl/sales/v005#MultiLanguageText70Type>
                          ] ;
                          rr:predicateObjectMap [
                            rr:predicate <http://ns.ketenstandaard.nl/sales/v005#MultiLanguageText70Type_Description> ;
                            rr:objectMap [ rml:reference "Description" ]
                          ]
                        ] ;
                        rr:joinCondition [
                          rr:child "." ;
                          rr:parent ".."
                        ]
                      ]
                    ]
                  ] ;
                  rr:joinCondition [
                    rr:child "." ;
                    rr:parent ".."
                  ]
                ]
              ]
            ] ;
            rr:joinCondition [
              rr:child "." ;
              rr:parent ".."
            ]
          ]
        ]
      ] ;
      rr:joinCondition [
        rr:child "." ;
        rr:parent ".."
      ]
    ]
  ], [
    rr:predicate <http://ns.ketenstandaard.nl/sales/v005#PriceCatalogueType_MessageDate> ;
    rr:objectMap [ rml:reference "BerichtDatum" ]
  ] .
XML Schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="https://example.org/messages/MijnPrijsCatalogus#" xmlns:sth="https://ns.semantic-treehouse.nl/message#" elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="https://example.org/messages/MijnPrijsCatalogus#" xmlns:ns0="http://example.org/messages#MijnPrijsCatalogus" xmlns:ns1="https://example.org/messages/MijnPrijsCatalogus" xmlns:ns2="https://example.org/messages/MijnPrijsCatalogus" xmlns:ns3="https://example.org/messages/prijscatalogus" xmlns:ns4="http://www.w3.org/2001/XMLSchema" xmlns:ns5="http://ns.ketenstandaard.nl/sales/v005">
<!--===== Root element definition =====-->
<xs:element name="MijnPrijsCatalogus">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="BerichtDatum" type="ns4:date">
        <xs:annotation>
          <xs:documentation>
            <sth:definition>Datum waarop het bericht is aangemaakt. </sth:definition>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Currency" type="ns4:string">
        <xs:annotation>
          <xs:documentation>
            <sth:definition>Code van de munteenheid waarin de bedragen in het bericht zijn uitgedrukt. </sth:definition>
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Buyer" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <sth:definition>Partij aan wie goederen en/of diensten worden verkocht en geleverd. </sth:definition>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="GLN" type="ns4:string">
              <xs:annotation>
                <xs:documentation>
                  <sth:definition>Global Location Number (GLN), een wereldwijd uniek nummer ter identificatie van een partij of locatie. </sth:definition>
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Grouping" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <sth:definition>Niveau in het bericht waar binnen artikelregels gegroepeerd kunnen worden per leverancier. </sth:definition>
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TradeItemLine" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>
                  <sth:definition>Niveau in het bericht waar artikelen worden gespecificeerd. </sth:definition>
                </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="MultiLanguageTradeItemDescription">
                    <xs:annotation>
                      <xs:documentation>
                        <sth:definition>Gegevens waarmee een artikel in tekst beschreven wordt, eventueel in meerdere talen. </sth:definition>
                      </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="TradeItemDescription" maxOccurs="unbounded">
                          <xs:annotation>
                            <xs:documentation>
                              <sth:definition>Tekstveld met een beschrijving van het artikel gericht op de afnemer. </sth:definition>
                            </xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="Description" type="ns4:string">
                                <xs:annotation>
                                  <xs:documentation>
                                    <sth:definition>Tekstveld met de inhoud van de omschrijving. </sth:definition>
                                  </xs:documentation>
                                </xs:annotation>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="PriceInformation" maxOccurs="unbounded">
                    <xs:annotation>
                      <xs:documentation>
                        <sth:definition>Gegevens over de prijs van een artikel. Als alleen de 'Netto prijs' is gevuld dan is de nettoprijs leidend en vervallen de condities. Als alleen de 'Bruto prijs' is gevuld dan geldt: nettoprijs = brutoprijs + condities. Geadviseerd wordt om niet 'Netto prijs' en 'Bruto prijs' te vullen, als beide toch zijn ingevuld dan is de 'Netto prijs' leidenden vervallen de condities</sth:definition>
                      </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="StartDatePriceInformation" type="ns4:date">
                          <xs:annotation>
                            <xs:documentation>
                              <sth:definition>Datum vanaf wanneer de prijsgegevens geldig zijn. </sth:definition>
                            </xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="GrossPrice" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>
                              <sth:definition>Bedrag dat wordt gevraagd voor de levering van een product of dienst, exclusief kortingen en toeslagen en exclusief BTW. Met de meegegeven kortingen/toeslagen kan de netto prijs berekend worden. Als het veld 'Indicatie prijs op aanvraag' gelijk is aan 'J' dan is de brutoprijs slechts een richtprijs tbv calculaties. Rekenregel: [Prijs van één besteleenheid] = [Brutoprijs] / [Aantal per prijs] * [Omrekenfactor prijseenheid naar eenheidafname]. Zie ook Procesbeschrijving.</sth:definition>
                            </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:decimal">
                              <xs:enumeration value="1 tot 15 cijfers"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="NetPrice" minOccurs="0" type="ns4:decimal">
                          <xs:annotation>
                            <xs:documentation>
                              <sth:definition>Bedrag dat wordt gevraagd voor de levering van een product of dienst, inclusief kortingen en toeslagen enexclusief BTW</sth:definition>
                            </xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="PriceBase">
                          <xs:annotation>
                            <xs:documentation>
                              <sth:definition>Gegevens over de basiseenheid waarin een prijs is uitgedrukt. Voorbeeld: de prijs voor spijkers is aangegeven per 1 kilogram. </sth:definition>
                            </xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="NumberOfUnitsInPriceBasis" type="ns4:decimal">
                                <xs:annotation>
                                  <xs:documentation>
                                    <sth:definition>Aantal eenheden waarin de prijs is uitgedrukt. </sth:definition>
                                  </xs:documentation>
                                </xs:annotation>
                              </xs:element>
                              <xs:element name="PriceBasisUoM" type="ns5:UoMType">
                                <xs:annotation>
                                  <xs:documentation>
                                    <sth:definition>Code van de meeteenheid waarin het 'aantal prijsbasis' is uitgedrukt. </sth:definition>
                                  </xs:documentation>
                                </xs:annotation>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>
</xs:schema>
JSON Schema: