Difference between revisions of "SimpleGraph-HTML"

From BITPlan Wiki
Jump to navigation Jump to search
(Created page with "{{SimpleGraphModule |name=HTML |logo=File:HTML5_logo_and_wordmark.svg |documentation=makes HTML files accessible via HTML Cleaner parser |url=http://htmlcleaner.sourceforge.ne...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
=SimpleGraphModule=
 +
 
{{SimpleGraphModule
 
{{SimpleGraphModule
 
|name=HTML
 
|name=HTML
 
|logo=File:HTML5_logo_and_wordmark.svg
 
|logo=File:HTML5_logo_and_wordmark.svg
 +
|modulename=html
 +
|systemname=HtmlSystem
 +
|url=https://en.wikipedia.org/wiki/HTML
 +
|apiname=HTML Cleaner
 +
|apiurl=http://htmlcleaner.sourceforge.net/
 +
|issue=6
 
|documentation=makes HTML files accessible via HTML Cleaner parser
 
|documentation=makes HTML files accessible via HTML Cleaner parser
|url=http://htmlcleaner.sourceforge.net/
 
 
|storemode=property
 
|storemode=property
 
|viewmode=hidden
 
|viewmode=hidden
 
}}
 
}}
 +
= Example =
 +
Extract links from the [http://agilemanifesto.org/ agile manifesto]
 +
<source lang='java'>
 +
HtmlSystem hs = HtmlSystem.forUrl("http://agilemanifesto.org/");
 +
...
 +
GraphTraversal<Vertex, Vertex> links = hs.g().V().hasLabel("a")
 +
</source>
 +
 +
[[Category:frontend]]

Latest revision as of 07:36, 13 December 2018

SimpleGraphModule

HTML5 logo and wordmark.svg

SimpleGraph HTML module

The SimpleGraph HTML module makes HTML files accessible via HTML Cleaner parser see HTML Cleaner. The initial issue is 6

Sources

Example

Extract links from the agile manifesto

HtmlSystem hs = HtmlSystem.forUrl("http://agilemanifesto.org/");
...
GraphTraversal<Vertex, Vertex> links = hs.g().V().hasLabel("a")