HTTPS SSH

bibsonomy-post-filter

Filtering and modifying posts made easy

The BibSonomy Post Filter provides a framework to filter posts and modify their contents. It is part of the BibSonomy social bookmarking system and is developed by the L3S Research Center, Hannover, Germany.

usage examples

The class ''ApiFilter'' implements a simple command line tool to retrieve posts from BibSonomy's REST API and further filter them. The matching posts are printed as BibTeX on STDOUT. The class also supports to update posts but this has not been tested thoroughly, so be careful!

Retrieve all publications that were published between 2005 and 2010 (inclusive):

java -cp bibsonomy-post-filter-0.0.1-jar-with-dependencies.jar org.bibsonomy.util.filter.posts.ApiFilter \
  YOUR-USER-NAME YOUR-API-KEY \
  "&[ resource.year >= 2005 resource.year <= 2010 ]"

Retrieve all publication whose "pages" field contains only one dash and replace it by a double dash:

java -cp bibsonomy-post-filter-0.0.1-jar-with-dependencies.jar org.bibsonomy.util.filter.posts.ApiFilter \
  YOUR-USER-NAME YOUR-API-KEY \
  "&[ resource.pages =~ '.*[0-9]\\s*-\\s*[0-9].*' ] : resource.pages :~ '\\s*-\\s*'/'--'"

Attaching the ''UPDATE'' parameter actually updates the posts in BibSonomy:

java -cp bibsonomy-post-filter-0.0.1-jar-with-dependencies.jar org.bibsonomy.util.filter.posts.ApiFilter \
  YOUR-USER-NAME YOUR-API-KEY \
  "&[ resource.pages =~ '.*[0-9]\\s*-\\s*[0-9].*' ] : resource.pages :~ '\\s*-\\s*'/'--'" \
  UPDATE

licensing

Please see the file LICENSE.