currency.n3
1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix o2: <http://www.w3.org/2007/ont/o2#>. # Just for 'chain' missing from owl
@prefix cc: <http://creativecommons.org/ns#>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.
@prefix doc: <http://www.w3.org/2000/10/swap/pim/doc#> .
@prefix ldif: <http://www.w3.org/2007/ont/ldif#> .
@prefix : <http://www.w3.org/2007/ont/currency#> .
@prefix cur: <http://www.w3.org/2007/ont/currency#> . # Hint
@keywords a, is, of.
<> doc:version "$Id: currency.n3,v 1.2 2010/12/22 13:50:58 timbl Exp $";
dc:title "An Ontology for Currencies";
doc:creator <http://www.w3.org/People/Berners-Lee/card#i>;
cc:licence <http://www.w3.org/2000/10/swap/LICENSE.n3>;
rdfs:comment """Currency.
A naive view for deriving a common value of assets in differet currencies
""".
Currency a rdfs:Class;
rdfs:label "currency";
rdfs:comment """An abstract currency""".
code a rdf:Property;
rdfs:label "code";
rdfs:domain Currency;
rdfs:comment "The three letter currency, eg: 'USD'.".
sign a rdf:Property;
rdfs:label "sign";
rdfs:domain Currency;
rdfs:comment "The symbol, eg: '$'.".
in_USD a rdf:Property;
rdfs:label "value in USD";
rdfs:domain Currency;
rdfs:comment """Notional value of 1 of the currency in USD, eg: 1.0.
This is a naive model in that it is dollar-centric,
does not distinsuish beetween buy and sell rates.""".
# These are examples. A definitive list could have to be pulled
# from the web somewhere in real time.
# For example http://dbpedia.org/ontology/Currency mentioned over 600 currecies in 2010.
USD rdfs:label "USD"; dc:title "US Dollars"; code "USD"; sign "$"; in_USD 1.0.
# GBP rdfs:label "GBP"; dc:title "GB Pounds"; code "GBP"; sign "£".
# EUR rdfs:label "EUR"; dc:title "Euros"; code "EUR"; sign "€".
# ends