Filter Call
Service Call:
http://api.semantichacker.com/TOKEN/filter[/FilterID]?
Overview
The filter call attempts to 'filter' out useless text from the indicated content. What text is produced varies depending on the filter algorithm used. The filter call is an external call to the same functions used when the 'filter' parameter is provided for other API calls. It can be very useful to "see" what text out of some content page is actually be utilized by the underlying Semantic Signature® technology. The following table details the available algorithms:
The desired filter type used is specified in the call by adding its identifier to the end of the request path. Although the filter ID is not required, it is highly recommended for each call to include the filter ID. If not provided, the filter used will be selected by looking at several properties of the API request made. The method of indicating content, URI, parameter, or upload, as well as the 'Content-Type' header will be utilized to determine the proper filter.
The filter call can be used to see the final text that would be used as input when using other TextWise API calls. To use a filter type other then the default, be sure to include the 'filter' parameter with the request for any call.
Besides the common request parameters, the filter call currently does not have any other request parameters.
The filter call supports the 'xml' and 'json' output formats.
Examples
http://api.semantichacker.com/TOKEN/filter/web?uri=http://www.linux.org
<?xml version="1.0" encoding="UTF-8"?> <response xmlns="http://www.semantichacker.com/api"> <about> <requestId>A76237286D8F91D26F2BB3AD34A915BB</requestId> <docId>42FF363F623BD786D0356F66F70F3B55</docId> <systemType>filter</systemType> <configId>odp_2007_l1_1.7k</configId> <contentType>text/html</contentType> <contentDigest>758F0A519C805D0899DB3926444181E1</contentDigest> <requestDate>2008-10-13T15:43:03+0000</requestDate> <systemVersion>2.0</systemVersion> <sourceUri>http://www.linux.org</sourceUri> </about> <filter> <filterResponse> <filteredTextLength>1893</filteredTextLength> <filteredText>The Linux Home Page at Linux Online . Linux is a free Unix-type operating system originally created by Linus Torvalds with the assistance of developers around the world. Developed under the GNU General Public License , the source code for Linux is freely available to everyone. Click on the link below to find out more about the operating system that is causing a revolution in the world of computers. For coverage of the SCO vs. IBM case, consult our SCO section . The Linux kernel provides the basic services and device drivers used by all other programs running on a Linux OS system. The latest kernels available are: . Do you have an old PC that you're thinking of parting with? Before you send it to the landfill, you may want to pick up a copy of The Official Damn Small Linux Book . In it, you'll find out all you need to know to give your old hardware a new lease on life. For more information, we invite you to read a review of this definitive book on this popular minimalist version of Linux. Are you thinking about switching to Linux and want to learn how to use it? Have you been using Linux for some time and want to learn even more? Then Linux Online's classroom can help! Three courses - one for beginners, another for intermediate level users and an advanced level course - are available to our visitors free of charge. What's stopping you from learning more about Linux? . Linux Online is a community supported web site. We need the help of visitors, like you, to pay the day to day costs of operating this site . This is your opportunity to support the Linux community by making a donation to the most popular Linux resource on the net! We have a number of exciting gifts for specific amounts but any donation is graciously accepted! You can use PayPal, Visa, Mastercard, Amex, Discover or regular mail to help us build the most comprehensive Linux resource available! . </filteredText> </filterResponse> </filter> </response>
http://api.semantichacker.com/TOKEN/filter/html?uri=http://www.java.sun.com
<?xml version="1.0" encoding="UTF-8"?> <response xmlns="http://www.semantichacker.com/api"> <about> <requestId>A85F14D0CFEE08105FFD08B5D62A2858</requestId> <docId>4D2584BA32883896A2F484C9CA878B22</docId> <systemType>filter</systemType> <configId>odp_2007_l1_1.7k</configId> <contentType>text/html</contentType> <contentDigest>BEC5DAC31EFBA62EA68450C904AEBB2D</contentDigest> <requestDate>2008-10-13T15:47:30+0000</requestDate> <systemVersion>2.0</systemVersion> <sourceUri>http://www.java.sun.com</sourceUri> </about> <filter> <filterResponse> <filteredTextLength>5227</filteredTextLength> <filteredText>"Java" "platform" "Web" "Web 2.0" "developers" "JVM" "Java SE" "J2SE" "Java EE" "J2EE" "Java ME" "J2ME" "JavaFX" "NetBeans" "MySQL" "GlassFish" "JavaDB" "Java DB" "desktop" "embedded" "mobile" "mobility" "wireless" "micro" "enterprise" "database" "James Gosling" "Jonathan Schwartz" "open source" "open-source" "community" "resources" "code" "code samples" "API" "APIs" "API's" "docs" "documentation" "student" "students" "bug" "bugs" "training" "certification" "training and certification" "time zone" "timezone" "videos" "tutorials" "compiler" "compilers" "Solaris" "free" "FOSS" "podcast" "multimedia" "web services" "blogs" "Tech Days" "OpenJDK" "OpenSolaris" "Mobile & Embedded" "OpenJFX" "forums" "newsletters" "user groups" "java.net" "ask the experts" "network" "network is the computer" "networks" "Sun" "Sun Microsystems" "news" "software" "support" "articles" "solutions" "events" "scripting" "Ruby" "JRuby" "Rails" "Gems" "products" "participate" "the network is the computer" "Whether you're creating software for mobile devices, desktops, enterprise systems, the Internet, or games, java.sun.com gets you what you need: code samples, developer tools, downloads, open-source projects, resource centers, and support.". Developer Resources for Java Technology Skip to Content Sun Java Solaris Communities My SDN Account Join SDN search tips APIs Downloads Products Support Training Participate Developers Home Products & Technologies Java.sun.com The Source for Java Developers Featured Content October 9, 2008 Enterprise Tech Tip: Securing Attachments With Metro 1.3 Learn about Metro, a high performance, extensible, easy-to-use web services stack that combines the JAX-WS reference implementation with Project Tango. October 7, 2008 Project Wonderland With Project Wonderland's toolkit of open-source software, you can create 3D virtual worlds where people can collaborate, conduct real business, and learn through immersive media. October 2, 2008 Blu-ray Disc Application Development Developer Bruce Hopkins walks you through a complete working example of how to a create BD-J application that works on any Blu-ray Disc player, using Java ME, with part 2 to follow. See All Articles Newsletters and Tips News and Updates Videos Developer Spotlight Voice Your Opinion: 2008 Presidential Election Who will win the 2008 U.S. presidential election? Voice your opinion on the issues and participate in discussions. This game, available on both Facebook and MySpace, is built and deployed on zembly , Sun's new browser-based social application development environment. Sun xVM Virtualization Portfolio Check out the only open solution spanning virtualization and management for new generation desktops and datacenters. Java Learning and Certification Young Developers Programming is not just for adults anymore! The Young Developer Series teaches Java programming to anyone over 10 years of age, using a tool called Greenfoot: Wombat Object Basics Wombat Classes Basics EJB 3.0 Technology Update Workshop Are you an experienced EJB developer looking to migrate to EJB 3.0? Check out this new workshop. Certification Success Packages It's easy to prepare for certification with packages that include training, practice exams and certification exam vouchers. All-in-one packages can save you up to 25%. New to Java Tutorials Certification Training Students See All From the Blogosphere Ken Saks on Portable Global JNDI Names EJB component developers: Here's a new way to deal with session bean global JNDI names. Using the Java Deployment Toolkit With JavaFX Applets Jim Weaver explains how to use the toolkit to easily deploy applets and applications to a large variety of clients. Blogs Blogs.sun.com Java.net Blogs Participate Developer Forums Ask a question or offer expertise on Sun's developer forums. SDN Share SDN Share is the place to submit technical tips, code samples, or articles. Interact with peers through voting and comments. Sun Open Sources Java Platform Implementations Get involved! New Communities: OpenJDK Mobile & Embedded GlassFish OpenJFX Forums Ask the Experts User Groups See All Want to Learn Java Technology? New to Java Programming Center Young Developers Educators Popular Downloads: Java SE Java EE 5 SDK Java ME NetBeans IDE MySQL Web Services See All Technologies: Java SE Java EE Java ME JavaFX Web Services See All Resources: Code Samples & Apps APIs Documentation Tutorials Videos Timezone Updates Student Developers Developer Training Bug Database Java Blueprints Solaris C/C++/Fortran Compilers Communities: OpenJDK Mobile & Embedded GlassFish OpenJFX NetBeans java.net Java Community Process SDN Share Related Resources: Open-Source Java Project Web Developer Resource Center java.com About Sun About This Site Newsletters Contact Us Employment How to Buy Licensing Terms of Use Privacy Trademarks Sun Microsystems, Inc. A Sun Developer Network Site Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License . Sun Developer RSS Feeds </filteredText> </filterResponse> </filter> </response>