bbc_data_service 1.9 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,7 +66,11 @@ module BBCDataService
66
66
  end
67
67
 
68
68
  def self.filter_graph(solutions, filter)
69
- solutions.filter(filter[:column].to_sym => RDF::Literal(filter[:value], :datatype => self.filter_type(filter[:type])))
69
+ if filter[:type] == :uri
70
+ solutions.filter(filter[:column].to_sym => RDF::URI(filter[:value]))
71
+ else
72
+ solutions.filter(filter[:column].to_sym => RDF::Literal(filter[:value], :datatype => self.filter_type(filter[:type])))
73
+ end
70
74
  end
71
75
 
72
76
  def self.filter_type(filter)
@@ -1,3 +1,3 @@
1
1
  module BBCDataService
2
- VERSION = "1.9"
2
+ VERSION = "1.9.1"
3
3
  end
@@ -61,6 +61,17 @@ describe BBCDataService::FixtureLoader do
61
61
  country.name.should == "Germany"
62
62
  end
63
63
 
64
+ it "should allow RDF to be filtered by RDF url" do
65
+ object = BBCDataService::FixtureLoader.load_fixture(:custom_vocabulary_multiple_sports,
66
+ :filter => {
67
+ :column => :document,
68
+ :value => "http://www.bbc.co.uk/sport/olympics/2012/sports/canoe-slalom",
69
+ :type => :uri
70
+ })
71
+ sport = object
72
+ sport.name.should == "Canoe Slalom"
73
+ end
74
+
64
75
  it "should allow filtering of data on the fly" do
65
76
  object = BBCDataService::FixtureLoader.load_fixture(:multiple_items,
66
77
  :filter => {
@@ -0,0 +1 @@
1
+ {"http:\/\/www.bbc.co.uk\/things\/9ceaa6a2-4fd2-5a41-8621-5055dd6c9a8c#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:CM0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"cycling-mountain-bike","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Cycling - Mountain Bike","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/cycling-mountain-bike","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/canoe-sprint":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/gymnastics-trampoline":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/69cbc5e2-b228-a143-8085-860c053f44f7#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:TK0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"taekwondo","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Taekwondo","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/taekwondo","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/weightlifting":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/synchronised-swimming":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/5a9bba82-5f5e-f343-9df7-48fc6d6a008e#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:FE0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"fencing","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Fencing","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/fencing","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/654f550c-0c2d-2341-a8f5-66e3a9ba28ba#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:JU0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"judo","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Judo","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/judo","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/gymnastics-rhythmic":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/fencing":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/ba6e1118-f874-054e-b159-b797c16e9250#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:FB0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"football","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Football","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/football","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/f583bff7-93c2-6d42-9425-0d8dae178ba0#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:CS0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"canoe-slalom","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Canoe Slalom","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/canoe-slalom","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/basketball":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/canoe-slalom":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/219d52a8-615e-4c43-bbdc-f52235a1c2ed#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:BV0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"beach-volleyball","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Beach Volleyball","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/beach-volleyball","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/c6e2a7ac-2d13-8640-9f98-41f749d94a6e#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:VO0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"volleyball","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Volleyball","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/volleyball","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/f21d1a82-e919-b24f-b3fb-8f2f46372f40#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:TT0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"table-tennis","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Table Tennis","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/table-tennis","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/tennis":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/ec975ffc-9b1d-5149-a2b7-aea59c5cafbe#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:GR0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"gymnastics-rhythmic","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Gymnastics - Rhythmic","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/gymnastics-rhythmic","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/water-polo":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/6ee5960a-e0d5-e545-aac8-fc67b0618710#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:GA0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"gymnastics-artistic","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Gymnastics - Artistic","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/gymnastics-artistic","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/6b04e406-c181-204b-a2dd-bc20142b9e6a#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:WL0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"weightlifting","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Weightlifting","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/weightlifting","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/eceae071-5f37-0848-acd2-f21e3b2de8ca#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:SH0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"shooting","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Shooting","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/shooting","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/53accf6c-631b-9140-852a-109fab88d3f8#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:MP0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"modern-pentathlon","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Modern Pentathlon","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/modern-pentathlon","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/e4d61a41-dba2-7849-a725-d8b445ec3cbc#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:WP0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"water-polo","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Water Polo","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/water-polo","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/452019a5-f0f2-0c47-aa11-42fdcf2ae16b#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:RO0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"rowing","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Rowing","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/rowing","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/cycling-road":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/126190f0-5bd7-7346-a739-39a80c01ae23#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:WR0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"wrestling","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Wrestling","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/wrestling","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/equestrian":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/volleyball":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/e3f61624-ad0d-0e45-b138-f583bfc9f6bd#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:CR0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"cycling-road","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Cycling - Road","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/cycling-road","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/hockey":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/athletics":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/b84fd4d8-b7b5-5b45-9f7a-d701c9f3907f#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:EQ0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"equestrian","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Equestrian","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/equestrian","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/9128f810-9feb-7546-ac3d-645cee9f5712#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:GT0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"gymnastics-trampoline","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Gymnastics - Trampoline","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/gymnastics-trampoline","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/wrestling":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/diving":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/e681e822-b849-0243-b698-1b9afe3f3858#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:HO0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"hockey","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Hockey","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/hockey","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/shooting":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/5d4c0236-5f3c-7849-a765-c1de4004025c#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:CB0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"cycling-bmx","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Cycling - BMX","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/cycling-bmx","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/3d5e63ec-1f4f-c24c-86ad-fd5d54e014f6#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:HB0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"handball","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Handball","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/handball","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/34c47f0b-ba75-0c40-8f01-d53cb40fcfa2#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:CT0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"cycling-track","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Cycling - Track","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/cycling-track","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/7b9b56fd-7c21-9b49-8c11-ce9854cb1ba4#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:CF0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"canoe-sprint","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Canoe Sprint","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/canoe-sprint","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/swimming":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/27ed8ba8-005a-5044-87dd-5373d679a020#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:BK0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"basketball","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Basketball","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/basketball","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/bd51d530-f0fb-684e-a305-3f15b7e6d4a1#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:SY0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"synchronised-swimming","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Synchronised Swimming","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/synchronised-swimming","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/handball":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/cycling-mountain-bike":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/rowing":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/boxing":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/b9a58a01-0c74-8b47-972f-68f922ebd90a#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:AR0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"archery","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Archery","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/archery","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/c5d39deb-46b8-1e4e-ba2c-5c6e2436b92d#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:TR0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"triathlon","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Triathlon","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/triathlon","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/badminton":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/21c45f67-36da-874e-ab36-02650add8311#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:BD0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"badminton","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Badminton","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/badminton","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/a5695e6f-2e4c-1b42-9b11-af0862edbb2a#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:SW0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"swimming","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Swimming","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/swimming","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/table-tennis":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/modern-pentathlon":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/judo":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/football":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/d9d6cc4d-79f1-ab49-9c9e-c98d166b99fe#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:DV0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"diving","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Diving","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/diving","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/gymnastics-artistic":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/cycling-bmx":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/taekwondo":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/0987d977-e389-964b-bbb0-0390f4c7a899#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:TE0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"tennis","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Tennis","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/tennis","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/sailing":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/d65c5dce-f5e4-4340-931b-16ca1848d092#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:SA0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"sailing","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Sailing","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/sailing","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/b3a086df-ab42-2b44-be8b-76b600bfcdce#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:AT0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"athletics","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Athletics","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/athletics","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/cycling-track":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/archery":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/things\/921a13d0-6fc6-6740-af87-8af4655ec20f#id":{"http:\/\/www.bbc.co.uk\/ontologies\/domain\/externalId":[{"value":"urn:ioc2012:BX0000000","type":"uri"}],"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/sport\/SportsDiscipline","type":"uri"}],"http:\/\/www.bbc.co.uk\/ontologies\/2012olympics\/urlName":[{"value":"boxing","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/name":[{"value":"Boxing","datatype":"http:\/\/www.w3.org\/2001\/XMLSchema#string","type":"literal"}],"http:\/\/www.bbc.co.uk\/ontologies\/domain\/document":[{"value":"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/boxing","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/beach-volleyball":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]},"http:\/\/www.bbc.co.uk\/sport\/olympics\/2012\/sports\/triathlon":{"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type":[{"value":"http:\/\/www.bbc.co.uk\/ontologies\/domain\/Document","type":"uri"}]}}
@@ -27,6 +27,18 @@ BBCDataService::AppFixture.register_fixture :custom_vocabulary, {
27
27
  }
28
28
  }
29
29
  }
30
+ BBCDataService::AppFixture.register_fixture :custom_vocabulary_multiple_sports, {
31
+ :endpoint => "/dsp/sport/olympics/2012/sports",
32
+ :type => :rdf,
33
+ :feed_url => File.expand_path("../sports-all.json", __FILE__),
34
+ :rdf_type => "sport:SportsDiscipline",
35
+ :mappings => {
36
+ :domain => {
37
+ :document => "document",
38
+ :name => "name"
39
+ }
40
+ }
41
+ }
30
42
  BBCDataService::AppFixture.register_fixture :no_rdf_type, {
31
43
  :endpoint => "/dsp/sport/olympics/2012/sports",
32
44
  :type => :rdf,
@@ -105,28 +117,7 @@ BBCDataService::AppFixture.register_fixture :relationships, {
105
117
  :par => {
106
118
  :role_at => "role_at"
107
119
  }
108
- },
109
- # :relationships => {
110
- # :team => {
111
- # #:foreign_key => :role_at,
112
- # :rdf_type => "sport:CompetitiveSportingOrganisation",
113
- # :mappings => {
114
- # :domain => {
115
- # :name => "name",
116
- # :short_name => "shortName"
117
- # }
118
- # }
119
- # },
120
- # :competes_in => {
121
- # :rdf_type => "sport:MedalCompetition",
122
- # :mappings => {
123
- # :domain => {
124
- # :name => "name",
125
- # :short_name => "shortName"
126
- # }
127
- # }
128
- # }
129
- # }
120
+ }
130
121
  }
131
122
  BBCDataService::AppFixture.register_fixture :xml_test, {
132
123
  :type => :xml,
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbc_data_service
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 9
9
- version: "1.9"
9
+ - 1
10
+ version: 1.9.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Matthew Crouch
@@ -193,6 +194,7 @@ files:
193
194
  - spec/fixtures/country.rdf.json
194
195
  - spec/fixtures/groups-individual.json
195
196
  - spec/fixtures/groups.json
197
+ - spec/fixtures/sports-all.json
196
198
  - spec/fixtures/sports.json
197
199
  - spec/fixtures/test-xml-feed.xml
198
200
  - spec/fixtures/test_config.rb
@@ -238,6 +240,7 @@ test_files:
238
240
  - spec/fixtures/country.rdf.json
239
241
  - spec/fixtures/groups-individual.json
240
242
  - spec/fixtures/groups.json
243
+ - spec/fixtures/sports-all.json
241
244
  - spec/fixtures/sports.json
242
245
  - spec/fixtures/test-xml-feed.xml
243
246
  - spec/fixtures/test_config.rb