Currencylayer · JSON-LD Context

Currencylayer Context

JSON-LD context defining the semantic vocabulary for Currencylayer from Currencylayer.

8 Classes 21 Properties 3 Namespaces
View Context View on GitHub

Namespaces

fx: https://api-evangelist.github.io/currencylayer/vocab#
schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

success timeframe change query info error type provider

Properties

Property Type Container
terms reference
privacy reference
timestamp long
historical boolean
source fx:CurrencyCode
date date
start_date date
end_date date
quotes index
currencies index
quote double
result double
amount double
from fx:CurrencyCode
to fx:CurrencyCode
start_rate double
end_rate double
change_pct double
code integer
info_text string
apilayer reference

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "fx": "https://api-evangelist.github.io/currencylayer/vocab#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "success": "fx:success",
    "terms": { "@id": "fx:termsUrl", "@type": "@id" },
    "privacy": { "@id": "fx:privacyUrl", "@type": "@id" },
    "timestamp": { "@id": "fx:timestamp", "@type": "xsd:long" },
    "historical": { "@id": "fx:historical", "@type": "xsd:boolean" },
    "source": { "@id": "fx:sourceCurrency", "@type": "fx:CurrencyCode" },
    "date": { "@id": "fx:rateDate", "@type": "xsd:date" },
    "start_date": { "@id": "fx:startDate", "@type": "xsd:date" },
    "end_date": { "@id": "fx:endDate", "@type": "xsd:date" },
    "timeframe": "fx:timeFrame",
    "change": "fx:change",

    "quotes": { "@id": "fx:quotes", "@container": "@index" },
    "currencies": { "@id": "fx:currencies", "@container": "@index" },

    "query": "fx:conversionQuery",
    "info": "fx:conversionInfo",
    "quote": { "@id": "fx:exchangeQuote", "@type": "xsd:double" },
    "result": { "@id": "fx:conversionResult", "@type": "xsd:double" },
    "amount": { "@id": "fx:amount", "@type": "xsd:double" },
    "from": { "@id": "fx:fromCurrency", "@type": "fx:CurrencyCode" },
    "to": { "@id": "fx:toCurrency", "@type": "fx:CurrencyCode" },

    "start_rate": { "@id": "fx:startRate", "@type": "xsd:double" },
    "end_rate": { "@id": "fx:endRate", "@type": "xsd:double" },
    "change_pct": { "@id": "fx:changePercent", "@type": "xsd:double" },

    "error": "fx:error",
    "code": { "@id": "fx:errorCode", "@type": "xsd:integer" },
    "type": "fx:errorType",
    "info_text": { "@id": "fx:errorInfo", "@type": "xsd:string" },

    "provider": "schema:provider",
    "apilayer": { "@id": "fx:apilayerMarketplace", "@type": "@id" }
  }
}