Examples are currently for worldcup endpoint

Issue #93 resolved
ian_hopkinson created an issue

The examples are currently for the worldcup endpoint and may not be meaningful for cars data.

Examples are:

 1. Actors of a specified type

http://127.0.0.1:5000/actors_of_a_type?uris.0=dbo:Person&filter=david

2. Details of a URI returned by the DESCRIBE query

http://127.0.0.1:5000/describe_uri?uris.0=dbpedia:Thierry_Henry&output=json

3. Event details for events involving a specified actor

http://127.0.0.1:5000/event_details_filtered_by_actor?uris.0=dbpedia:David_Beckham

4. Frequency of event labels in events

http://127.0.0.1:5000/event_label_frequency_count?filter=bribe+OR+bribery

5. Get the text of a document

http://127.0.0.1:5000/get_document?uris.0=http://news.bbc.co.uk/sport2/hi/football/gossip_and_transfers/5137822.stm

6. Get document metadata

http://127.0.0.1:5000/get_document_metadata?uris.0=http://news.bbc.co.uk/sport2/hi/football/gossip_and_transfers/5137822.stm

7. Get mention metadata

http://127.0.0.1:5000/get_mention_metadata?uris.0=http%3A%2F%2Fnews.bbc.co.uk%2Fsport2%2Fhi%2Ffootball%2Fgossip_and_transfers%2F5137822.stm%23char%3D1162%2C1167%26word%3Dw220%26term%3Dt220

8. People who share an event with a named person

http://127.0.0.1:5000/people_sharing_event_with_a_person?uris.0=dbpedia:David_Beckham

9. Get the properties of a type

http://127.0.0.1:5000/properties_of_a_type?uris.0=dbo:Stadium

10. Get a property of actors of a type mentioned in the news

http://127.0.0.1:5000/property_of_actors_of_a_type/page/1?uris.1=dbo:height&filter=david&uris.0=dbo:SoccerPlayer

11. Get events mentioning a named actor

http://127.0.0.1:5000/summary_of_events_with_actor?uris.0=dbpedia:Thierry_Henry

12. Get events mentioning a type of actor

http://127.0.0.1:5000/summary_of_events_with_actor_type?datefilter=2010-01&uris.0=dbo:GolfPlayer

13. Search for events with a specified label

http://127.0.0.1:5000/summary_of_events_with_event_label?filter=bribe&datefilter=2010

14. Get events with a specific framenet value

http://127.0.0.1:5000/summary_of_events_with_framenet?uris.0=framenet:Omen

15. Get events mentioning two named actors

http://127.0.0.1:5000/summary_of_events_with_two_actors?uris.0=dbpedia:David_Beckham&uris.1=dbpedia:Sepp_Blatter

16. Types of actors

http://127.0.0.1:5000/types_of_actors?filter=player

Comments (9)

  1. ian_hopkinson reporter

    Replacements:

    1. Actors of a specified type

    https://newsreader.scraperwiki.com/actors_of_a_type?uris.0=dbo:Person&filter=Martin

    Gets us Martin Winterkorn (head of Volkswagen) as top entry (Mark gives us Mark Fields, Head of Ford but then Gospel of Mark).

    1. Details of a URI returned by the DESCRIBE query

    https://newsreader.scraperwiki.com/describe_uri?uris.0=dbpedia:Martin_Winterkorn&output=json

    Martin Winterkorn has good information from dbpedia

    1. People who share an event with a named person

    https://newsreader.scraperwiki.com/people_sharing_event_with_a_person/page/23?uris.0=dbpedia%3AMartin_Winterkorn

    Martin Winterkorn is a reliable performer!

  2. Steven Maude

    Need other examples for the others. Not quite sure how to refactor the examples out of the documentation yet.

  3. ian_hopkinson reporter

    I've got examples for all but the calls to the CRUD endpoint, they're in a branch which I haven't pull requested yet because I wanted to wrap up the CRUD queries at the same time.

    I have a spreadsheet which has the query and variants of the example for each endpoint. We could load the example from a CSV made from this spreadsheet.

  4. Steven Maude

    This is linked to issue #92 as the examples also contain the URL to visit, which needs to change to match the endpoint, so if you visit /cars, the examples include cars. So, we do need this really.

  5. ian_hopkinson reporter

    I'm going to PR this now so that we have something to work off for the endpoint switching.

    I will raise a separate issue to get the CRUD queries to work.

  6. Log in to comment