Code samples
quyin edited this page Feb 8, 2013
·
3 revisions
This page lists some small examples that we include in the BigSemanticsSDK
project. For projects that use BigSemantics, see projects.
Collects weather data from Weather Underground for several Texas cities.
- Code: https://github.com/ecologylab/BigSemanticsJava/tree/master/BigSemanticsSDK/src/ecologylab/bigsemantics/example/weatherdata
- Input: (None)
- Output: A CSV file containing weather data.
Searches multiple search engines for the same query (meta-search), interleaves results, and renders in HTML. It shows how a base class, Search
, is used to process search results from different sources in a consistent way, maximizing code reuse.
- Code: https://github.com/ecologylab/BigSemanticsJava/tree/master/BigSemanticsSDK/src/ecologylab/bigsemantics/example/metasearch
-
Input: A list of search URLs, each should correspond with a wrapper derived from
<search>
. - Output: A HTML page showing interleaved search results.
Automatically links metadata for the same entity from multiple resources. This feature is still under development.
- Code: https://github.com/ecologylab/BigSemanticsJava/tree/master/BigSemanticsSDK/src/ecologylab/bigsemantics/example/linking
-
Input: One URL corresponding to a metadata object, or a list of such URLs. The wrapper for this metadata object should use
<link_with>
and<url_generator>
to specify links to metadata from other sources. - Output: A HTML page showing linked metadata.