Module: BBCDataService::Vocabulary::ClassMethods

Defined in:
lib/bbc_data_service/vocabulary.rb

Instance Method Summary collapse

Instance Method Details

#vocabulariesObject



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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/bbc_data_service/vocabulary.rb', line 11

def vocabularies
  vocabulary = {
    :foaf => RDF::Vocabulary.new("http://xmlns.com/foaf/0.1/"),
    :owlim => RDF::Vocabulary.new("http://www.ontotext.com/"),
    :tzont => RDF::Vocabulary.new("http://www.w3.org/2006/timezone#"),
    :ns => RDF::Vocabulary.new("http://xmlns.com/foaf/0.1/"),
    :bbcevent => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/event/"),
    :tl => RDF::Vocabulary.new("http://purl.org/NET/c4dm/timeline.owl#"),
    :tag => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/tag/"),
    :dcam => RDF::Vocabulary.new("http://purl.org/dc/dcam/"),
    :geo_pos => RDF::Vocabulary.new("http://www.w3.org/2003/01/geo/wgs84_pos#"),
    :umbel_ac => RDF::Vocabulary.new("http://umbel.org/umbel/ac/"),
    :time => RDF::Vocabulary.new("http://www.w3.org/2006/time#"),
    :sw_vocab => RDF::Vocabulary.new("http://www.w3.org/2003/06/sw-vocab-status/ns#"),
    :ff => RDF::Vocabulary.new("http://factforge.net/"),
    :event => RDF::Vocabulary.new("http://purl.org/NET/c4dm/event.owl#"),
    :participation => RDF::Vocabulary.new("http://purl.org/vocab/participation/schema#"),
    :music_ont => RDF::Vocabulary.new("http://purl.org/ontology/mo/"),
    :oly => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/2012olympics/"),
    :opencyc_en => RDF::Vocabulary.new("http://sw.opencyc.org/2008/06/10/concept/en/"),
    :dc_term => RDF::Vocabulary.new("http://purl.org/dc/terms/"),
    :om => RDF::Vocabulary.new("http://www.ontotext.com/owlim/"),
    :factbook => RDF::Vocabulary.new("http://www.daml.org/2001/12/factbook/factbook-ont#"),
    :rdf => RDF::Vocabulary.new("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),
    :exif => RDF::Vocabulary.new("http://www.w3.org/2003/12/exif/ns#"),
    :dc => RDF::Vocabulary.new("http://purl.org/dc/elements/1.1/"),
    :protege => RDF::Vocabulary.new("http://protege.stanford.edu/plugins/owl/protege#"),
    :asset => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/asset/"),
    :yago => RDF::Vocabulary.new("http://mpii.de/yago/resource/"),
    :xml => RDF::Vocabulary.new("http://www.w3.org/XML/1998/namespace"),
    :daml => RDF::Vocabulary.new("http://www.daml.org/2001/03/daml+oil#"),
    :ontology => RDF::Vocabulary.new("http://www.bbc.co.uk/ontology/"),
    :gn => RDF::Vocabulary.new("http://www.geonames.org/ontology#"),
    :umbel => RDF::Vocabulary.new("http://umbel.org/umbel#"),
    :wordnet16 => RDF::Vocabulary.new("http://xmlns.com/wordnet/1.6/"),
    :swrlb => RDF::Vocabulary.new("http://www.w3.org/2003/11/swrlb#"),
    :owl => RDF::Vocabulary.new("http://www.w3.org/2002/07/owl#"),
    :po => RDF::Vocabulary.new("http://purl.org/ontology/po/"),
    :wordnet => RDF::Vocabulary.new("http://www.w3.org/2006/03/wn/wn20/instances/"),
    :gr => RDF::Vocabulary.new("http://purl.org/goodrelations/v1#"),
    :cc => RDF::Vocabulary.new("http://creativecommons.org/ns#"),
    :go => RDF::Vocabulary.new("http://aims.fao.org/aos/geopolitical.owl"),
    :opencyc => RDF::Vocabulary.new("http://sw.opencyc.org/concept/"),
    :wordn_sc => RDF::Vocabulary.new("http://www.w3.org/2006/03/wn/wn20/schema/"),
    :nytimes => RDF::Vocabulary.new("http://data.nytimes.com/"),
    :dbp_prop => RDF::Vocabulary.new("http://dbpedia.org/property/"),
    :geonames => RDF::Vocabulary.new("http://sws.geonames.org/"),
    :protons => RDF::Vocabulary.new("http://proton.semanticweb.org/2005/04/protons#"),
    :protonu => RDF::Vocabulary.new("http://proton.semanticweb.org/2005/04/protonu#"),
    :protont => RDF::Vocabulary.new("http://proton.semanticweb.org/2005/04/protont#"),
    :wot => RDF::Vocabulary.new("http://xmlns.com/wot/0.1/"),
    :rdfs => RDF::Vocabulary.new("http://www.w3.org/2000/01/rdf-schema#"),
    :swrl => RDF::Vocabulary.new("http://www.w3.org/2003/11/swrl#"),
    :domain => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/domain/"),
    :dbpedia => RDF::Vocabulary.new("http://dbpedia.org/resource/"),
    :sesame => RDF::Vocabulary.new("http://www.openrdf.org/schema/sesame#"),
    :oasis => RDF::Vocabulary.new("http://psi.oasis-open.org/iso/639/#"),
    :ex => RDF::Vocabulary.new("http://example.org/"),
    :umbel_en => RDF::Vocabulary.new("http://umbel.org/umbel/ne/wikipedia/"),
    :xsp => RDF::Vocabulary.new("http://www.owl-ontologies.com/2005/08/07/xsp.owl#"),
    :news => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/news/"),
    :lingvoj => RDF::Vocabulary.new("http://www.lingvoj.org/ontology#"),
    :bbcsys => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/system/"),
    :sport => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/sport/"),
    :fb => RDF::Vocabulary.new("http://rdf.freebase.com/ns/"),
    :dbtune => RDF::Vocabulary.new("http://dbtune.org/bbc/peel/work/"),
    :umbel_sc => RDF::Vocabulary.new("http://umbel.org/umbel/sc/"),
    :dbp_ont => RDF::Vocabulary.new("http://dbpedia.org/ontology/"),
    :ub => RDF::Vocabulary.new("http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#"),
    :xsd => RDF::Vocabulary.new("http://www.w3.org/2001/XMLSchema#"),
    :damloil => RDF::Vocabulary.new("http://www.daml.org/2000/12/daml+oil#"),
    :skos => RDF::Vocabulary.new("http://www.w3.org/2004/02/skos/core#"),
    :protonkm => RDF::Vocabulary.new("http://proton.semanticweb.org/2005/04/protonkm#"),
    :geo_pol => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/geopolitical/"),
    :par => RDF::Vocabulary.new("http://purl.org/vocab/participation/schema#")
  }
  if ServiceConfig[:vocabularies].size > 0
    ServiceConfig[:vocabularies].each do |v|
      key = v.keys.first
      vocabulary[key] = v[key]
    end
  end
  vocabulary
end