Skip to content

OLS Extension Service response draft

rasta edited this page Jul 25, 2018 · 5 revisions
{
  "@context": {
    "sot": "https://someonotoly/types/"
  },
  "wien": [
    {
      "@type":"sot:City",
      "skos:exactMatch": "https://someontology/taxon/viennacity",
      "skos:prefLabel": [
        {
          "@value": "Vienna",
          "@language": "eng"
        },
        {
          "@value": "Wien",
          "@language": "deu"
        }
      ],
      "skos:broader": [
        {
          "@type":"sot:State",
          "skos:exactMatch": "https://someontology/taxon/viennastate",
          "skos:prefLabel": [
            {
              "@value": "Vienna",
              "@language": "eng"
            },
            {
              "@value": "Wien",
              "@language": "deu"
            }
          ],
          "skos:broader": {
            "@type":"sot:Country",
            "skos:exactMatch": "https://someontology/taxon/austria",
            "skos:prefLabel": [
              {
                "@value": "Austria",
                "@language": "eng"
              },
              {
                "@value": "Österreich",
                "@language": "deu"
              }
            ]
          }
        }
      ]
    },
    {
      "@type":"sot:River",
      "skos:exactMatch": "https://someontology/taxon/wienriver",
      "skos:prefLabel": [
        {
          "@value": "Wien",
          "@language": "eng"
        },
        {
          "@value": "Wien",
          "@language": "deu"
        }
      ],
      "skos:broader": [
        {
          "@type":"sot:State",
          "skos:exactMatch": "https://someontology/taxon/viennastate",
          "skos:prefLabel": [
            {
              "@value": "Vienna",
              "@language": "eng"
            },
            {
              "@value": "Wien",
              "@language": "deu"
            }
          ],
          "skos:broader": {
            "@type":"sot:Country",
            "skos:exactMatch": "https://someontology/taxon/austria",
            "skos:prefLabel": [
              {
                "@value": "Austria",
                "@language": "eng"
              },
              {
                "@value": "Österreich",
                "@language": "deu"
              }
            ]
          }
        }
      ]
    },
    {
      "@type":"sot:Aqueducts",
      "skos:exactMatch": "https://someontology/taxon/fvmsp",
      "skos:prefLabel": [
        {
          "@value": "First Vienna Mountain Spring Pipeline",
          "@language": "eng"
        },
        {
          "@value": "Erste Wiener Hochquellenleitung",
          "@language": "deu"
        }
      ],
      "skos:broader": [
        {
          "@type":"sot:State",
          "skos:exactMatch": "https://someontology/taxon/viennastate",
          "skos:prefLabel": [
            {
              "@value": "Vienna",
              "@language": "eng"
            },
            {
              "@value": "Wien",
              "@language": "deu"
            }
          ],
          "skos:broader": {
            "@type":"sot:Country",
            "skos:exactMatch": "https://someontology/taxon/austria",
            "skos:prefLabel": [
              {
                "@value": "Austria",
                "@language": "eng"
              },
              {
                "@value": "Österreich",
                "@language": "deu"
              }
            ]
          }
        },
        {
          "@type":"sot:State",
          "skos:exactMatch": "https://someontology/taxon/loweraustriastate",
          "skos:prefLabel": [
            {
              "@value": "Lower Autria",
              "@language": "eng"
            },
            {
              "@value": "Niederösterreich",
              "@language": "deu"
            }
          ],
          "skos:broader": {
            "@type":"sot:Country",
            "skos:exactMatch": "https://someontology/taxon/austria",
            "skos:prefLabel": [
              {
                "@value": "Austria",
                "@language": "eng"
              },
              {
                "@value": "Österreich",
                "@language": "deu"
              }
            ]
          }
        }
      ]
    },
    ...
  ]
}
{
  "@context": {
    "sot": "https://someonotoly/types/"
  },
  "@type":"sot:City",
  "skos:exactMatch": "https://someontology/taxon/austria",
  "skos:prefLabel": [
    {
        "@value": "Austria",
        "@language": "eng"
    },
    {
        "@value": "Österreich",
        "@language": "deu"
    }
  ],
  "skos:narrower": [
    {
      "@type":"sot:State",
      "skos:exactMatch": "https://someontology/taxon/viennastate",
      "skos:prefLabel": [
        {
          "@value": "Vienna",
          "@language": "eng"
        },
        {
          "@value": "Wien",
          "@language": "deu"
        }
      ]
    },
    {
      "@type":"sot:State",
      "skos:exactMatch": "https://someontology/taxon/loweraustriastate",
      "skos:prefLabel": [
        {
          "@value": "Lower Autria",
          "@language": "eng"
        },
        {
          "@value": "Niederösterreich",
          "@language": "deu"
        }
      ]
    },
    ...
  ]
}