Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

entities

  • Loading branch information...
commit 90ec6e8f12c4d07443bd0daa04902db09367da4b 1 parent 6fe3ce1
@spier spier authored
View
12 silobreaker/silobreaker.documents.xml
@@ -19,6 +19,7 @@
<inputs>
<key id="q" as="query" type="xs:string" paramType="path" required="true" />
<key id="apiKey" type="xs:string" paramType="query" required="true" />
+ <key id="type" type="xs:string" paramType="query" default="xml" const="true" />
<!--
How the result should be sorted. Default is by publication date. The following sort values are supported:
@@ -27,7 +28,16 @@
-->
<key id="sortBy" type="xs:string" paramType="query" default="publicationdate" />
- <key id="type" type="xs:string" paramType="query" default="xml" const="true" />
+ <!--
+ Comma separated list of document types that should be returned. Valid types are:
+ Article
+ Blog
+ Fact Sheet
+ Press Release
+ Audio/Video
+ -->
+ <key id="types" type="xs:string" paramType="query" />
+
</inputs>
</select>
</bindings>
View
62 silobreaker/silobreaker.entities.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description></description>
+ <documentationURL>http://api.silobreaker.com/ApiReference.htm</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE query="Sweden" AND apiKey="YOUR_API_KEY"</sampleQuery>
+ </meta>
+ <bindings>
+
+ <select itemPath="ItemListResultOfTermData.Items.TermData" produces="XML">
+ <urls>
+ <url>http://api.silobreaker.com/documents/{q}/entities/{types}</url>
+ </urls>
+ <paging model="page">
+ <start id="pageNumber" default="0" />
+ <pagesize id="pageSize" max="250" />
+ <total default="20" />
+ </paging>
+ <inputs>
+ <key id="q" as="query" type="xs:string" paramType="path" required="true" />
+ <key id="apiKey" type="xs:string" paramType="query" required="true" />
+ <key id="type" type="xs:string" paramType="query" default="xml" const="true" />
+
+ <key id="q" as="query" type="xs:string" paramType="path" required="true" />
+
+ <!--
+ Comma separated list of entity types that should be returned. Valid types are:
+ Person
+ Company
+ Organization
+ Keyphrase
+ Country
+ City
+ -->
+ <key id="types" type="xs:string" paramType="query" requires="true"/>
+ </inputs>
+ </select>
+
+
+
+ <select itemPath="ItemListResultOfTermData.Items.TermData" produces="XML">
+ <urls>
+ <url>http://api.silobreaker.com/entities/{q}</url>
+ </urls>
+ <paging model="page">
+ <start id="pageNumber" default="0" />
+ <pagesize id="pageSize" max="250" />
+ <total default="20" />
+ </paging>
+ <inputs>
+ <key id="q" as="query" type="xs:string" paramType="path" required="true" />
+ <key id="apiKey" type="xs:string" paramType="query" required="true" />
+ <key id="type" type="xs:string" paramType="query" default="xml" const="true" />
+ </inputs>
+ </select>
+
+ </bindings>
+</table>
+
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.