Permalink
Please
sign in to comment.
Browse files
warcbase core moves to aut
* Update package name * Move warcbase-core to root * Remove Wayback * Combine parent pom and warcbase-core pom * Update pom * Remove warcbase-hbase * Remove vis * Update README * Add LICENSE * Update TravisCI config * Update gitignore * Update CONTRIBUTING.md
- Loading branch information
Showing
with
415 additions
and 25,747 deletions.
- +5 −0 .gitignore
- +1 −1 .travis.yml
- +14 −16 CONTRIBUTING.md
- +11 −0 LICENSE
- +11 −86 README.md
- +227 −14 pom.xml
- +1 −1 ...se-core/src/main/java/org/warcbase → src/main/java/io/archivesunleashed}/data/ArcRecordUtils.java
- +1 −1 ...e-core/src/main/java/org/warcbase → src/main/java/io/archivesunleashed}/data/WarcRecordUtils.java
- +3 −3 ...re/src/main/java/org/warcbase → src/main/java/io/archivesunleashed}/demo/WacMapReduceArcDemo.java
- +2 −2 ...e-core/src/main/java/org/warcbase → src/main/java/io/archivesunleashed}/io/ArcRecordWritable.java
- +3 −3 ...main/java/org/warcbase → src/main/java/io/archivesunleashed}/io/GenericArchiveRecordWritable.java
- +2 −2 ...-core/src/main/java/org/warcbase → src/main/java/io/archivesunleashed}/io/WarcRecordWritable.java
- +2 −2 ...src/main/java/org/warcbase → src/main/java/io/archivesunleashed}/mapreduce/WacArcInputFormat.java
- +4 −4 ...main/java/org/warcbase → src/main/java/io/archivesunleashed}/mapreduce/WacGenericInputFormat.java
- +2 −2 ...rc/main/java/org/warcbase → src/main/java/io/archivesunleashed}/mapreduce/WacWarcInputFormat.java
- 0 {warcbase-core → }/src/main/python/break-into-date-scrapes.py
- 0 {warcbase-core → }/src/main/python/combine-entity-results-split-by-date.py
- 0 {warcbase-core → }/src/main/python/combine-entity-results.py
- 0 {warcbase-core → }/src/main/python/pig2gdf.py
- 0 {warcbase-core → }/src/main/resources/log4j.properties
- +5 −5 ...c/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/archive/io/ArcRecord.scala
- +1 −1 ...in/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/archive/io/ArchiveRecord.scala
- +7 −7 ...a/org/warcbase → src/main/scala/io/archivesunleashed}/spark/archive/io/GenericArchiveRecord.scala
- +5 −5 .../main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/archive/io/WarcRecord.scala
- +1 −1 ...n/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ComputeImageSize.scala
- +2 −2 ...rc/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ComputeMD5.scala
- +2 −2 ...ain/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/DetectLanguage.scala
- +1 −1 ...scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/DetectMimeTypeTika.scala
- +1 −1 .../scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractAtMentions.scala
- +1 −1 ...la/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractBoilerpipeText.scala
- +1 −1 ...c/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractDate.scala
- +1 −1 ...main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractDomain.scala
- +1 −1 ...in/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractEntities.scala
- +5 −5 .../main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractGraph.scala
- +1 −1 ...in/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractHashtags.scala
- +1 −1 .../scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractImageLinks.scala
- +1 −1 .../main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractLinks.scala
- +3 −3 ...ala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractPopularImages.scala
- +2 −2 ...cala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractTextFromPDFs.scala
- +1 −1 ...c/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/ExtractUrls.scala
- +1 −1 ...ain/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/NER3Classifier.scala
- +2 −2 ...in/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/NERCombinedJson.scala
- +5 −5 .../main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/RecordLoader.scala
- +1 −1 ...rc/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/RemoveHTML.scala
- +2 −2 ...n/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/RemoveHttpHeader.scala
- +1 −1 ...c/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/StringUtils.scala
- +2 −2 ...ain/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/TupleFormatter.scala
- +2 −2 ...rc/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/TweetUtils.scala
- +1 −1 .../src/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/matchbox/WriteGDF.scala
- +3 −3 ...g/warcbase → src/main/scala/io/archivesunleashed}/spark/pythonconverters/ArcRecordConverter.scala
- +7 −7 ...core/src/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/rdd/RecordRDD.scala
- +5 −5 ...ain/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/scripts/CrawlStatistics.scala
- +3 −3 ...ore/src/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/scripts/Filter.scala
- +3 −3 ...in/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/scripts/SocialMediaLinks.scala
- +1 −1 ...ore/src/main/scala/org/warcbase → src/main/scala/io/archivesunleashed}/spark/utils/JsonUtil.scala
- +2 −2 ...ore/src/test/java/org/warcbase → src/test/java/io/archivesunleashed}/ingest/WacArcLoaderTest.java
- +2 −2 ...re/src/test/java/org/warcbase → src/test/java/io/archivesunleashed}/ingest/WacWarcLoaderTest.java
- +2 −2 ...re/src/test/java/org/warcbase → src/test/java/io/archivesunleashed}/io/ArcRecordWritableTest.java
- +4 −4 .../java/org/warcbase → src/test/java/io/archivesunleashed}/io/GenericArchiveRecordWritableTest.java
- +2 −2 ...e/src/test/java/org/warcbase → src/test/java/io/archivesunleashed}/io/WarcRecordWritableTest.java
- +2 −2 ...test/java/org/warcbase → src/test/java/io/archivesunleashed}/mapreduce/WacArcInputFormatTest.java
- +3 −3 .../java/org/warcbase → src/test/java/io/archivesunleashed}/mapreduce/WacGenericInputFormatTest.java
- +2 −2 ...est/java/org/warcbase → src/test/java/io/archivesunleashed}/mapreduce/WacWarcInputFormatTest.java
- BIN {warcbase-core → }/src/test/resources/arc/example.arc.gz
- 0 {warcbase-core → }/src/test/resources/ner/example.txt
- BIN {warcbase-core → }/src/test/resources/warc/example.warc.gz
- +4 −4 ...cbase-core/src/test/scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/ArcTest.scala
- +2 −2 ...st/scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/GenericArchiveRecordTest.scala
- +4 −4 ...base-core/src/test/scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/WarcTest.scala
- +1 −1 ...la/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/ExtractAtMentionsTest.scala
- +2 −2 ...st/scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/ExtractDateTest.scala
- +1 −1 .../scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/ExtractDomainTest.scala
- +2 −2 ...cala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/ExtractEntitiesTest.scala
- +1 −1 ...cala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/ExtractHashtagsTest.scala
- +1 −1 ...la/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/ExtractImageLinksTest.scala
- +1 −1 ...t/scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/ExtractLinksTest.scala
- +1 −1 ...st/scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/ExtractUrlsTest.scala
- +1 −1 ...st/scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/StringUtilsTest.scala
- +1 −1 ...scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/matchbox/TupleFormatterTest.scala
- +3 −3 ...c/test/scala/org/warcbase → src/test/scala/io/archivesunleashed}/spark/rdd/CountableRDDTest.scala
- +0 −8 vis/crawl-sites/README.md
- +0 −63 vis/crawl-sites/data.csv
- +0 −175 vis/crawl-sites/index.html
- +0 −59 vis/crawl-sites/process.py
- +0 −2,827 vis/crawl-sites/raw.txt
- +0 −9 vis/link-vis/README.md
- +0 −93 vis/link-vis/assets/css/app.css
- +0 −4 vis/link-vis/assets/css/lib/nouislider.min.css
- +0 −97 vis/link-vis/assets/css/lib/nouislider.pips.css
- +0 −390 vis/link-vis/assets/js/app.js
- +0 −280 vis/link-vis/assets/js/lib/d3.tip.v0.6.3.js
- +0 −39 vis/link-vis/assets/js/lib/jquery.isloading.min.js
- +0 −3 vis/link-vis/assets/js/lib/nouislider.min.js
- +0 −1 vis/link-vis/assets/js/variables.js
- +0 −1 vis/link-vis/assets/js/variables.temp
- +0 −1 vis/link-vis/data/graph.json
- +0 −71 vis/link-vis/index.html
- +0 −28 vis/link-vis/startServer.py
- +0 −55 vis/ner/URI.js
- +0 −387 vis/ner/d3.layout.cloud.js
- +0 −644 vis/ner/index.html
- +0 −222 warcbase-core/pom.xml
- +0 −289 warcbase-core/src/main/java/org/warcbase/wayback/WarcbaseResourceIndex.java
- +0 −103 warcbase-core/src/main/java/org/warcbase/wayback/WarcbaseResourceStore.java
- +0 −26 warcbase-core/src/main/resources/BDBCollection.xml
- +0 −20 warcbase-core/src/main/webapp/WEB-INF/web.xml
- +0 −250 warcbase-hbase/pom.xml
- +0 −155 warcbase-hbase/src/main/java/org/warcbase/WarcbaseAdmin.java
- +0 −168 warcbase-hbase/src/main/java/org/warcbase/analysis/FindArcUrls.java
- +0 −197 warcbase-hbase/src/main/java/org/warcbase/analysis/FindWarcUrls.java
- +0 −493 warcbase-hbase/src/main/java/org/warcbase/analysis/graph/ExtractLinksWac.java
- +0 −518 warcbase-hbase/src/main/java/org/warcbase/analysis/graph/ExtractSiteLinks.java
- +0 −485 warcbase-hbase/src/main/java/org/warcbase/analysis/graph/InvertAnchorText.java
- +0 −110 warcbase-hbase/src/main/java/org/warcbase/analysis/graph/PrefixMapping.java
- +0 −70 warcbase-hbase/src/main/java/org/warcbase/browser/SeleniumBrowser.java
- +0 −105 warcbase-hbase/src/main/java/org/warcbase/browser/WarcBrowser.java
- +0 −180 warcbase-hbase/src/main/java/org/warcbase/browser/WarcBrowserServlet.java
- +0 −101 warcbase-hbase/src/main/java/org/warcbase/data/HBaseTableManager.java
- +0 −253 warcbase-hbase/src/main/java/org/warcbase/data/UrlMapping.java
- +0 −143 warcbase-hbase/src/main/java/org/warcbase/data/UrlMappingBuilder.java
- +0 −270 warcbase-hbase/src/main/java/org/warcbase/data/UrlMappingMapReduceBuilder.java
- +0 −95 warcbase-hbase/src/main/java/org/warcbase/data/UrlUtils.java
- +0 −187 warcbase-hbase/src/main/java/org/warcbase/demo/WacMapReduceHBaseDemo.java
- +0 −154 warcbase-hbase/src/main/java/org/warcbase/demo/WacMapReduceHBaseWrapperDemo.java
- +0 −129 warcbase-hbase/src/main/java/org/warcbase/index/IndexerMapper.java
- +0 −212 warcbase-hbase/src/main/java/org/warcbase/index/IndexerReducer.java
- +0 −199 warcbase-hbase/src/main/java/org/warcbase/index/IndexerRunner.java
- +0 −351 warcbase-hbase/src/main/java/org/warcbase/ingest/IngestFiles.java
- +0 −196 warcbase-hbase/src/main/java/org/warcbase/ingest/SearchForUrl.java
- +0 −689 warcbase-hbase/src/main/java/org/warcbase/mapreduce/lib/Chain.java
- +0 −349 warcbase-hbase/src/main/java/org/warcbase/mapreduce/lib/ChainMapContextImpl.java
- +0 −47 warcbase-hbase/src/main/java/org/warcbase/mapreduce/lib/HBaseRowToArcRecordWritableMapper.java
- +0 −188 warcbase-hbase/src/main/java/org/warcbase/mapreduce/lib/TableChainMapper.java
- +0 −63 warcbase-hbase/src/main/solr/README.txt
- +0 −142 warcbase-hbase/src/main/solr/WARCIndexer.conf
- +0 −67 warcbase-hbase/src/main/solr/discovery/conf/currency.xml
- +0 −38 warcbase-hbase/src/main/solr/discovery/conf/elevate.xml
- +0 −8 warcbase-hbase/src/main/solr/discovery/conf/lang/contractions_ca.txt
- +0 −9 warcbase-hbase/src/main/solr/discovery/conf/lang/contractions_fr.txt
- +0 −5 warcbase-hbase/src/main/solr/discovery/conf/lang/contractions_ga.txt
- +0 −23 warcbase-hbase/src/main/solr/discovery/conf/lang/contractions_it.txt
- +0 −5 warcbase-hbase/src/main/solr/discovery/conf/lang/hyphenations_ga.txt
- +0 −6 warcbase-hbase/src/main/solr/discovery/conf/lang/stemdict_nl.txt
- +0 −420 warcbase-hbase/src/main/solr/discovery/conf/lang/stoptags_ja.txt
- +0 −125 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_ar.txt
- +0 −193 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_bg.txt
- +0 −220 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_ca.txt
- +0 −172 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_cz.txt
- +0 −108 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_da.txt
- +0 −292 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_de.txt
- +0 −78 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_el.txt
- +0 −54 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_en.txt
- +0 −354 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_es.txt
- +0 −99 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_eu.txt
- +0 −313 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_fa.txt
- +0 −95 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_fi.txt
- +0 −183 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_fr.txt
- +0 −110 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_ga.txt
- +0 −161 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_gl.txt
- +0 −235 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_hi.txt
- +0 −209 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_hu.txt
- +0 −46 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_hy.txt
- +0 −359 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_id.txt
- +0 −301 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_it.txt
- +0 −127 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_ja.txt
- +0 −172 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_lv.txt
- +0 −117 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_nl.txt
- +0 −192 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_no.txt
- +0 −251 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_pt.txt
- +0 −233 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_ro.txt
- +0 −241 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_ru.txt
- +0 −131 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_sv.txt
- +0 −119 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_th.txt
- +0 −212 warcbase-hbase/src/main/solr/discovery/conf/lang/stopwords_tr.txt
- +0 −29 warcbase-hbase/src/main/solr/discovery/conf/lang/userdict_ja.txt
- +0 −21 warcbase-hbase/src/main/solr/discovery/conf/protwords.txt
- +0 −333 warcbase-hbase/src/main/solr/discovery/conf/schema.xml
- +0 −1,818 warcbase-hbase/src/main/solr/discovery/conf/solrconfig-production.xml
- +0 −2,281 warcbase-hbase/src/main/solr/discovery/conf/solrconfig-server-4.10.4.xml
- +0 −2,228 warcbase-hbase/src/main/solr/discovery/conf/solrconfig.xml
- +0 −1 warcbase-hbase/src/main/solr/discovery/conf/solrcore.properties
- +0 −1 warcbase-hbase/src/main/solr/discovery/conf/solrcore.properties-production
- +0 −14 warcbase-hbase/src/main/solr/discovery/conf/stopwords.txt
- +0 −29 warcbase-hbase/src/main/solr/discovery/conf/synonyms.txt
- +0 −1 warcbase-hbase/src/main/solr/discovery/core.properties
- +0 −37 warcbase-hbase/src/main/solr/solr.xml
- +0 −17 warcbase-hbase/src/main/solr/zoo.cfg
- +0 −152 warcbase-hbase/src/test/java/org/warcbase/data/UrlMappingTest.java
- +0 −45 warcbase-hbase/src/test/java/org/warcbase/data/UrlUtilsTest.java
@@ -1,55 +1,53 @@ | ||
# Welcome! | ||
|
||
If you are reading this document then you are interested in contributing to the warcbase or warcbase workshop project. All contributions are welcome: use-cases, documentation, code, patches, bug reports, feature requests, etc. You do not need to be a programmer to speak up! | ||
If you are reading this document then you are interested in contributing The Archives Unleashed Project. All contributions are welcome: use-cases, documentation, code, ptatches, bug reports, feature requests, etc. You do not need to be a programmer to speak up! | ||
|
||
### Use cases | ||
|
||
If you would like to submit a use case for the warcbase project, please submit and issue [here](https://github.com/lintool/warcbase/issues/new), assigning the "use case" label to the issue. | ||
If you would like to submit a use case for The Archives Unleashed Toolkit, please submit and issue [here](https://github.com/archivesunleashed/aut/issues/new), and begin the issue title with "Use Case:". | ||
|
||
### Documentation | ||
|
||
You can contribute documentation in two different ways. One way is to create an issue [here](https://github.com/lintool/warcbase/issues/new) assign the "documentation" label to the issue. | ||
|
||
We also do have a [warcbase-docs](https://github.com/lintool/warcbase-docs) repository. You can fork and do a Pull Request. All documentation resides in [`docs`](https://github.com/lintool/warcbase-docs/tree/master/docs). | ||
You can contribute documentation in two different ways. One way is to create an issue [here](https://github.com/archivesunleashed/aut/issues/new) and begin the issue title with "Documentation:". | ||
|
||
### Request a new feature | ||
|
||
To request a new feature you should [open an issue](https://github.com/lintool/warcbase/issues/new) or create a use case as described above (see _use case_ section above), and summarize the desired functionality. Select the label "enhancement" if creating an issue on the project repo. | ||
To request a new feature you should [open an issue](https://github.com/archivesunleashed/aut/issues/new) or create a use case as described above (see _use case_ section above), and summarize the desired functionality. Begin the issue title with "Enhancement:". | ||
|
||
### Report a bug | ||
|
||
To report a bug you should [open an issue](https://github.com/lintool/warcbase/issues/new) that summarizes the bug. Set the label to "bug". | ||
To report a bug you should [open an issue](https://github.com/archivesunleashed/aut/issues/new) that summarizes the bug. Set the label to "bug". | ||
|
||
In order to help us understand and fix the bug it would be great if you could provide us with: | ||
|
||
1. The steps to reproduce the bug. This includes information about e.g. the warcbase version you were using, whether on a single node or cluster, etc. | ||
1. The steps to reproduce the bug. This includes information about e.g. The Archives Unleashed Toolkit version you were using, whether on a single node or cluster, etc. | ||
2. The expected behavior. | ||
3. The actual, incorrect behavior. | ||
|
||
Feel free to search the issue queue for existing issues (aka tickets) that already describe the problem; if there is such a ticket please add your information as a comment. | ||
|
||
### Contribute code | ||
|
||
_If you are interested in contributing code to Warcbase but do not know where to begin:_ | ||
_If you are interested in contributing code to The Archives Unleashed Toolkit but do not know where to begin:_ | ||
|
||
In this case you should [browse open issues](https://github.com/lintool/warcbase/issues), and or [use cases](https://github.com/lintool/warcbase/labels/use%20case). | ||
In this case you should [browse open issues](https://github.com/archivesunleashed/aut/issues). | ||
|
||
Contributions to the Warcbase codebase should be sent as GitHub pull requests. See section _Create a pull request_ below for details. If there is any problem with the pull request we can work through it using the commenting features of GitHub. | ||
Contributions to The Archives Unleased Toolkit codebase should be sent as GitHub pull requests. See section _Create a pull request_ below for details. If there is any problem with the pull request we can work through it using the commenting features of GitHub. | ||
|
||
* For _small patches_, feel free to submit pull requests directly for those patches. | ||
* For _larger code contributions_, please use the following process. The idea behind this process is to prevent any wasted work and catch design issues early on. | ||
|
||
1. [Open an issue](https://github.com/lintool/warcbase/issues) and assign it the label of "enhancement", if a similar issue does not exist already. If a similar issue does exist, then you may consider participating in the work on the existing issue. | ||
1. [Open an issue](https://github.com/archivesunleashed/aut/issues), if a similar issue does not exist already. If a similar issue does exist, then you may consider participating in the work on the existing issue. | ||
2. Comment on the issue with your plan for implementing the issue. Explain what pieces of the codebase you are going to touch and how everything is going to fit together. | ||
3. Warcbase committers will work with you on the design to make sure you are on the right track. | ||
3. The Archives Unleashed Toolkit committers will work with you on the design to make sure you are on the right track. | ||
4. Implement your issue, create a pull request (see below), and iterate from there. | ||
|
||
### Create a pull request | ||
|
||
Take a look at [Creating a pull request](https://help.github.com/articles/creating-a-pull-request). In a nutshell you need to: | ||
|
||
1. [Fork](https://help.github.com/articles/fork-a-repo) the warcbase GitHub repository at [https://github.com/lintool/warcbase](https://github.com/lintool/warcbase) to your personal GitHub account. | ||
1. [Fork](https://help.github.com/articles/fork-a-repo) The Archives Unleashed Toolkit GitHub repository at [https://github.com/archivesunleashed/aut](https://github.com/archivesleashed/aut) to your personal GitHub account. | ||
2. Commit any changes to your fork. | ||
3. Send a [pull request](https://help.github.com/articles/creating-a-pull-request) to the warcbase GitHub repository that you forked in step 1. If your pull request is related to an existing issue -- for instance, because you reported a [bug/issue](https://github.com/lintool/warcbase/issues) earlier -- prefix the title of your pull request with the corresponding issue number (e.g. `issue-123: ...`). Please also include a reference to the issue in the description of the pull. This can be done by using '#' plus the issue number like so '#123', also try to pick an appropriate name for the branch in which you're issuing the pull request from. | ||
3. Send a [pull request](https://help.github.com/articles/creating-a-pull-request) to The Archives Unleashed Toolkit GitHub repository that you forked in step 1. If your pull request is related to an existing issue -- for instance, because you reported a [bug/issue](https://github.com/archivesunleashed/aut/issues) earlier -- prefix the title of your pull request with the corresponding issue number (e.g. `issue-123: ...`). Please also include a reference to the issue in the description of the pull. This can be done by using '#' plus the issue number like so '#123', also try to pick an appropriate name for the branch in which you're issuing the pull request from. | ||
|
||
You may want to read [Syncing a fork](https://help.github.com/articles/syncing-a-fork) for instructions on how to keep your fork up to date with the latest changes of the upstream (official) `warcbase` repository. | ||
You may want to read [Syncing a fork](https://help.github.com/articles/syncing-a-fork) for instructions on how to keep your fork up to date with the latest changes of the upstream (official) `aut` repository. |
@@ -0,0 +1,11 @@ | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
@@ -1,113 +1,38 @@ | ||
Warcbase [![Build Status](https://travis-ci.org/lintool/warcbase.svg?branch=master)](https://travis-ci.org/lintool/warcbase) | ||
======== | ||
# The Archives Unleashed Toolkit [![Build Status](https://travis-ci.org/archivesunleashed/aut.svg?branch=master)](https://travis-ci.org/archivesunleashed/aut) | ||
|
||
Warcbase is an open-source platform for managing web archives built on Hadoop and HBase. The platform provides a flexible data model for storing and managing raw content as well as metadata and extracted knowledge. Tight integration with Hadoop provides powerful tools for analytics and data processing via Spark. | ||
The Archives Unleashed Toolkit is an open-source platform for analyzing web archives. Tight integration with Hadoop provides powerful tools for analytics and data processing via Apache Spark. | ||
|
||
There are two main ways of using Warcbase: | ||
|
||
+ The first and most common is to analyze web archives using [Spark](http://spark.apache.org/): these functionalities are contained in the `warcbase-core` module. | ||
+ The second is to take advantage of HBase to provide random access as well as analytics capabilities. Random access allows Warcbase to provide temporal browsing of archived content (i.e., "wayback" functionality): these functionalities are contained in the `warcbase-hbase` module. | ||
|
||
You can use Warcbase without HBase, and since HBase requires more extensive setup, it is recommended that if you're just starting out, play with the Spark analytics and don't worry about HBase. | ||
|
||
Other helpful links: | ||
|
||
+ Detailed documentation is available [here](http://lintool.github.io/warcbase-docs/). | ||
+ Supporting files can be found in the [warcbase-resources repository](https://github.com/lintool/warcbase-resources). | ||
|
||
Getting Started | ||
--------------- | ||
## Getting Started | ||
|
||
Clone the repo: | ||
|
||
``` | ||
$ git clone http://github.com/lintool/warcbase.git | ||
$ git clone http://github.com/archivesunleashed/aut.git | ||
``` | ||
|
||
You can then build Warcbase. If you are just interested in the analytics function, you can run the following: | ||
You can then build The Archives Unleased Toolkit. | ||
|
||
``` | ||
$ mvn clean package -pl warcbase-core | ||
$ mvn clean install | ||
``` | ||
|
||
For the impatient, to skip tests: | ||
|
||
``` | ||
$ mvn clean package -pl warcbase-core -DskipTests | ||
``` | ||
|
||
If you are interested in the HBase functionality as well, you can build everything using: | ||
|
||
``` | ||
$ mvn clean package | ||
$ mvn clean install -DskipTests | ||
``` | ||
|
||
Warcbase is built against CDH 5.7.1: | ||
The Archives Unleashed Toolkit is built against CDH 5.7.1: | ||
|
||
+ Hadoop version: 2.6.0-cdh5.7.1 | ||
+ Spark version: 1.6.0-cdh5.7.1 | ||
+ HBase version: 1.2.0-cdh5.7.1 | ||
|
||
The Hadoop ecosystem is evolving rapidly, so there may be incompatibilities with other versions. | ||
|
||
Spark Quickstart | ||
---------------- | ||
|
||
For the impatient, let's do a simple analysis with Spark. Within the repo there's already a sample ARC file stored at `warcbase-core/src/test/resources/arc/example.arc.gz`. Our supporting resources repository also has [larger ARC and WARC files as real-world examples](https://github.com/lintool/warcbase-resources/tree/master/Sample-Data). | ||
|
||
If you need to install Spark, [we have a walkthrough here](http://lintool.github.io/warcbase-docs/Getting-Started/). This page also has instructions on how to install and run Spark Notebook, an interactive web-based editor. | ||
|
||
Once you've got Spark installed, go ahead and fire up the Spark shell: | ||
|
||
``` | ||
$ spark-shell --jars warcbase-core/target/warcbase-core-0.1.0-SNAPSHOT-fatjar.jar | ||
``` | ||
|
||
Here's a simple script that extracts and counts the top-level domains (i.e., number of pages for each top-level domain) in the sample ARC data: | ||
|
||
```scala | ||
import org.warcbase.spark.matchbox._ | ||
import org.warcbase.spark.rdd.RecordRDD._ | ||
val r = RecordLoader.loadArchives("warcbase-core/src/test/resources/arc/example.arc.gz", sc) | ||
.keepValidPages() | ||
.map(r => ExtractDomain(r.getUrl)) | ||
.countItems() | ||
.take(10) | ||
``` | ||
|
||
**Tip:** By default, commands in the Spark shell must be one line. To run multi-line commands, type `:paste` in the Spark shell: you can then copy-paste the script above directly into Spark shell. Use Ctrl-D to finish the command. | ||
|
||
What to learn more? Check out our [detailed documentation](http://lintool.github.io/warcbase-docs/). | ||
|
||
|
||
Visualizations | ||
-------------- | ||
|
||
The result of analyses of using Warcbase can serve as input to visualizations that help scholars interactively explore the data. Examples include: | ||
|
||
+ [Basic crawl statistics](http://lintool.github.io/warcbase/vis/crawl-sites/index.html) from the Canadian Political Parties and Political Interest Groups collection. | ||
+ [Interactive graph visualization](http://lintool.github.io/warcbase-docs/Gephi-Converting-Site-Link-Structure-into-Dynamic-Visualization/) using Gephi. | ||
+ [Named entity visualization](http://lintool.github.io/warcbase-docs/Spark-NER-Visualization/) for exploring relative frequencies of people, places, and locations. | ||
+ [Shine interface](http://webarchives.ca/) for faceted full-text search. | ||
|
||
|
||
Next Steps | ||
---------- | ||
|
||
+ [Ingesting content into HBase](http://lintool.github.io/warcbase-docs/Ingesting-Content-into-HBase/): loading ARC and WARC data into HBase | ||
+ [Warcbase/Wayback integration](http://lintool.github.io/warcbase-docs/Warcbase-Wayback-Integration/): guide to provide temporal browsing capabilities | ||
+ [Warcbase Java tools](http://lintool.github.io/warcbase-docs/Warcbase-Java-Tools/): building the URL mapping, extracting the webgraph | ||
|
||
|
||
License | ||
------- | ||
# License | ||
|
||
Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0). | ||
|
||
# Acknowledgments | ||
|
||
Acknowledgments | ||
--------------- | ||
|
||
This work is supported in part by the U.S. National Science Foundation, the Natural Sciences and Engineering Research Council of Canada, the Social Sciences and Humanities Research Council of Canada, the Ontario Ministry of Research and Innovation's Early Researcher Award program, and the Mellon Foundation (via Columbia University). Any opinions, findings, and conclusions or recommendations expressed are those of the researchers and do not necessarily reflect the views of the sponsors. | ||
|
||
This work is supported in part by the U.S. National Science Foundation, the Natural Sciences and Engineering Research Council of Canada, the Social Sciences and Humanities Research Council of Canada, the Ontario Ministry of Research and Innovation's Early Researcher Award program, and the Andrew W. Mellon Foundation (via Columbia University, University of Waterlook, and York University). Any opinions, findings, and conclusions or recommendations expressed are those of the researchers and do not necessarily reflect the views of the sponsors. |
Oops, something went wrong.
0 comments on commit
b726144