Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added license comments and README.txt

  • Loading branch information...
commit d0c2ba251dd00b82d90a7cca9dc0a54f3720de0a 1 parent 979a47f
tep authored
Showing with 1,051 additions and 514 deletions.
  1. +62 −0 GettingStarted.txt
  2. +53 −0 LICENSE.txt
  3. +113 −58 README.txt
  4. +0 −3  pom.xml
  5. +8 −0 scripts/build-index.sh
  6. +10 −0 scripts/query-index.sh
  7. +11 −0 src/main/java/com/yahoo/glimmer/indexing/BySubjectCollectionBuilder.java
  8. +11 −0 src/main/java/com/yahoo/glimmer/indexing/CombinedTermProcessor.java
  9. +11 −0 src/main/java/com/yahoo/glimmer/indexing/ConcatenatedDocumentCollection.java
  10. +11 −0 src/main/java/com/yahoo/glimmer/indexing/DocSizesGenerator.java
  11. +11 −0 src/main/java/com/yahoo/glimmer/indexing/DocSizesReader.java
  12. +11 −0 src/main/java/com/yahoo/glimmer/indexing/HorizontalDocument.java
  13. +11 −0 src/main/java/com/yahoo/glimmer/indexing/HorizontalDocumentFactory.java
  14. +11 −0 src/main/java/com/yahoo/glimmer/indexing/NonWordTermProcessor.java
  15. +11 −0 src/main/java/com/yahoo/glimmer/indexing/RDFDocument.java
  16. +11 −0 src/main/java/com/yahoo/glimmer/indexing/RDFDocumentFactory.java
  17. +11 −0 src/main/java/com/yahoo/glimmer/indexing/RDFInputFormat.java
  18. +11 −0 src/main/java/com/yahoo/glimmer/indexing/RDFRecordReader.java
  19. +11 −0 src/main/java/com/yahoo/glimmer/indexing/RDFtoTrecWebConverter.java
  20. +11 −0 src/main/java/com/yahoo/glimmer/indexing/StatementCollectorHandler.java
  21. +11 −0 src/main/java/com/yahoo/glimmer/indexing/StopwordTermProcessor.java
  22. +11 −0 src/main/java/com/yahoo/glimmer/indexing/TitleListDocumentCollection.java
  23. +11 −0 src/main/java/com/yahoo/glimmer/indexing/TriplesCollectionBuilder.java
  24. +11 −0 src/main/java/com/yahoo/glimmer/indexing/VerticalDocument.java
  25. +11 −0 src/main/java/com/yahoo/glimmer/indexing/VerticalDocumentFactory.java
  26. +11 −0 src/main/java/com/yahoo/glimmer/indexing/WordArrayReader.java
  27. +11 −0 src/main/java/com/yahoo/glimmer/indexing/WordIndexGenerator.java
  28. +11 −0 src/main/java/com/yahoo/glimmer/indexing/generator/DocumentMapper.java
  29. +11 −0 src/main/java/com/yahoo/glimmer/indexing/generator/Index.java
  30. +11 −0 src/main/java/com/yahoo/glimmer/indexing/generator/Occurrence.java
  31. +11 −0 src/main/java/com/yahoo/glimmer/indexing/generator/TermOccurrencePair.java
  32. +11 −0 src/main/java/com/yahoo/glimmer/indexing/generator/TermOccurrencePairReduce.java
  33. +11 −0 src/main/java/com/yahoo/glimmer/indexing/generator/TripleIndexGenerator.java
  34. +11 −0 src/main/java/com/yahoo/glimmer/indexing/preprocessor/ResourceRecordWriter.java
  35. +11 −0 src/main/java/com/yahoo/glimmer/indexing/preprocessor/ResourcesReducer.java
  36. +11 −0 src/main/java/com/yahoo/glimmer/indexing/preprocessor/TuplesToResourcesMapper.java
  37. +11 −0 src/main/java/com/yahoo/glimmer/indexing/preprocessor/TuplesTool.java
  38. +11 −0 src/main/java/com/yahoo/glimmer/query/Context.java
  39. +11 −0 src/main/java/com/yahoo/glimmer/query/IndexStatistics.java
  40. +11 −0 src/main/java/com/yahoo/glimmer/query/QueryLogger.java
  41. +11 −0 src/main/java/com/yahoo/glimmer/query/RDFIndex.java
  42. +11 −0 src/main/java/com/yahoo/glimmer/query/RDFQueryParser.java
  43. +11 −0 src/main/java/com/yahoo/glimmer/query/RDFQueryResult.java
  44. +11 −0 src/main/java/com/yahoo/glimmer/query/RDFResultItem.java
  45. +11 −0 src/main/java/com/yahoo/glimmer/query/SetDocumentPriors.java
  46. +11 −0 src/main/java/com/yahoo/glimmer/query/Util.java
  47. +11 −0 src/main/java/com/yahoo/glimmer/query/WOOScorer.java
  48. +11 −0 src/main/java/com/yahoo/glimmer/util/ComputeHashTool.java
  49. +11 −0 src/main/java/com/yahoo/glimmer/util/MapReducePartInputStreamEnumeration.java
  50. +11 −0 src/main/java/com/yahoo/glimmer/util/MergeSortTool.java
  51. +0 −453 src/main/java/com/yahoo/glimmer/util/NTriplesUtil.java
  52. +12 −0 src/main/java/com/yahoo/glimmer/util/NTuplesWriter.java
  53. +11 −0 src/main/java/com/yahoo/glimmer/util/ReadersWriterMergeSort.java
  54. +11 −0 src/main/java/com/yahoo/glimmer/util/Util.java
  55. +11 −0 src/main/java/com/yahoo/glimmer/vocabulary/OwlUtils.java
  56. +11 −0 src/main/java/com/yahoo/glimmer/web/DocObjectView.java
  57. +11 −0 src/main/java/com/yahoo/glimmer/web/FormatParameterToViewNameTranslator.java
  58. +11 −0 src/main/java/com/yahoo/glimmer/web/IndexMap.java
  59. +11 −0 src/main/java/com/yahoo/glimmer/web/JsObjectView.java
  60. +11 −0 src/main/java/com/yahoo/glimmer/web/Querier.java
  61. +11 −0 src/main/java/com/yahoo/glimmer/web/QueryCommand.java
  62. +11 −0 src/main/java/com/yahoo/glimmer/web/QueryController.java
  63. +11 −0 src/main/java/com/yahoo/glimmer/web/XmlObjectView.java
  64. +67 −0 src/main/resources/t_namespaces.html
  65. +11 −0 src/test/java/com/yahoo/glimmer/indexing/AbstractDocumentFactoryTest.java
  66. +11 −0 src/test/java/com/yahoo/glimmer/indexing/HorizontalDocumentFactoryTest.java
  67. +11 −0 src/test/java/com/yahoo/glimmer/indexing/VerticalDocumentFactoryTest.java
  68. +11 −0 src/test/java/com/yahoo/glimmer/indexing/generator/DocumentMapperTest.java
  69. +11 −0 src/test/java/com/yahoo/glimmer/indexing/generator/TermOccurrencePairReduceTest.java
  70. +11 −0 src/test/java/com/yahoo/glimmer/indexing/preprocessor/ResourceRecordWriterTest.java
  71. +11 −0 src/test/java/com/yahoo/glimmer/indexing/preprocessor/ResourcesReducerTest.java
  72. +11 −0 src/test/java/com/yahoo/glimmer/indexing/preprocessor/TextMatcher.java
  73. +11 −0 src/test/java/com/yahoo/glimmer/indexing/preprocessor/TuplesToResourcesMapperTest.java
  74. +11 −0 src/test/java/com/yahoo/glimmer/util/ComputeHashTest.java
  75. +11 −0 src/test/java/com/yahoo/glimmer/util/ReadersWriterMergeSortTest.java
View
62 GettingStarted.txt
@@ -0,0 +1,62 @@
+Welcome to Glimmer
+
+ Glimmer is a Hadoop based distributed indexing system for building MG4J indexes from RDF tuples in NQuads format. It also includes a simple web application for querying the resulting indexes <TODO +something about this+scorer..). Both the indexing and web application are written in Java. There are also a few shell scripts to execute the steps need to build the indexes for a given NQuads file and query the resulting index from the command line. Glimmer is an academic project and is the implementation of distributed indexing detailed in the paper 'Distributed Indexing for Semantic Search' by Peter Mika(Yahoo Research).
+
+Prerequisites
+-------------
+- Java JDK 6. Other versions may work. The code was written against version 1.6.0_31
+- A Maven installation. We used version 3.0.3 during development.
+- A Hadoop cluster. Probably version 0.20.205.0. The version of Hadoop we developed the code with is defined in the pom.xml file.
+- If you want try out the web app an install of a Java servlet container such as Tomcat, Jetty etc..
+- If you want a more usable interface to the MG4J query command-line you can install rlwrap to get command-line history/editing.
+
+All other dependencies are jars that are automatically downloaded by Maven.
+
+Index Building
+--------------
+
+1. Build an uber jar with mvn for building indexes with.
+
+In the root directory of Glimmer run:
+
+ mvn compile (or mvn test)
+ mvn assembly:single
+
+This will produce a jar Glimmer-?.?.?-SNAPSHOT-jar-with-dependencies.jar in the ./target directory. This jar contains the Glimmer classes + all dependencies zipped into one file.
+
+2. The process of building an index with Glimmer consists of the following steps. (The build-index.sh shell script is provided to automate the process.)
+
+* Preprocess the NQuads tuple file to get:
+ - A sorted unique list by subject with the subjects associated predicates, object, context.
+ - A sorted unique list of subjects resources.
+ - A sorted unique list of predicates resources.
+ - A sorted unique list of all resources(Subject, Predicate, Object & Context).
+
+* Build minimal perfect hash functions over the unique sorted lists of resources. This function is a mapping of a given resource to its position in the unique sorted list.
+
+* Build the 'horizontal' and 'vertical'(See the paper..) MG4J indexes.
+
+* Compute the Document sizes.
+
+* Build the MG4J document collection.
+
+* Copy all the generated files to the desired location.
+
+
+Querying
+--------
+
+Once you have the indexes build you can use the MG4J query command line class it.unimi.dsi.mg4j.query.Query to query them. You may find the query-index.sh script helpful here.
+
+You can also setup, build and deploy the Java web application as follows:
+
+1. Configure where your indexes are in src/main/webapp/WEB-INF/classes/config-generic.properties. The directories found in the directory given by 'multiindex.path' property and that have names starting with the 'multiindex.dirprefix' property are treated as MG4J indexes. The names will appear in the Dataset dropdown in the webapp.
+
+2. Use the maven-war-plugin to build the war file. From the projects root directory run the command
+
+ mvn compile (or mvn test)
+ mvn war:war (mvn war:exploded maybe of interest to some people too)
+
+This will build the war file Glimmer-?.?.?-SNAPSHOT.war in the target directory.
+
+2. Copy the war into do the deployment directory of your installed Java Servlet container.
View
53 LICENSE.txt
@@ -0,0 +1,53 @@
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
View
171 README.txt
@@ -1,63 +1,118 @@
Welcome to Glimmer
- Glimmer is a Hadoop based distributed indexing system for building MG4J indexes from RDF tuples in NQuads format. It also includes a simple web application for querying the resulting indexes <TODO +something about this+scorer..). Both the indexing and web application are written in Java. There are also a few shell scripts to execute the steps need to build the indexes for a given NQuads file and query the resulting index from the command line. Glimmer is an academic project and is the implementation of distributed indexing detailed in the paper 'Distributed Indexing for Semantic Search' by Peter Mika(Yahoo Research).
+Glimmer uses several 3rd party open source libraries and tools.
+This file summarizes the tools used, their purpose, and the licenses under which they're released.
+This file also gives a basic introduction to building and using Glimmer.
-Prerequisites
--------------
-- Java JDK 6. Other versions may work. The code was written against version 1.6.0_31
-- A Maven installation. We used version 3.0.3 during development.
-- A Hadoop cluster. Probably version 0.20.205.0. The version of Hadoop we developed the code with is defined in the pom.xml file.
-- If you want try out the web app an install of a Java servlet container such as Tomcat, Jetty etc..
-- If you want a more usable interface to the MG4J query command-line you can install rlwrap to get command-line history/editing.
+Except as specifically stated below, the 3rd party software packages are not distributed as part of
+this project, but instead are separately downloaded from the respective provider.
-All other dependencies are jars that are automatically downloaded by Maven.
-
-Index Building
---------------
-
-1. Build an uber jar with mvn for building indexes with.
-
-In the root directory of Glimmer run:
-
- mvn compile (or mvn test)
- mvn assembly:single
-
-This will produce a jar Glimmer-?.?.?-SNAPSHOT-jar-with-dependencies.jar in the ./target directory. This jar contains the Glimmer classes + all dependencies zipped into one file.
-
-2. The process of building an index with Glimmer consists of the following steps. (The build-index.sh shell script is provided to automate the process.)
-
-* Preprocess the NQuads tuple file to get:
- - A sorted unique list by subject with the subjects associated predicates, object, context.
- - A sorted unique list of subjects resources.
- - A sorted unique list of predicates resources.
- - A sorted unique list of all resources(Subject, Predicate, Object & Context).
-
-* Build minimal perfect hash functions over the unique sorted lists of resources. This function is a mapping of a given resource to its position in the unique sorted list.
-
-* Build the 'horizontal' and 'vertical'(See the paper..) MG4J indexes.
-
-* Compute the Document sizes.
-
-* Build the MG4J document collection.
-
-* Copy all the generated files to the desired location.
-
-
-Querying
---------
-
-Once you have the indexes build you can use the MG4J query command line class it.unimi.dsi.mg4j.query.Query to query them. You may find the query-index.sh script helpful here.
-
-You can also setup, build and deploy the Java web application as follows:
-
-1. Configure where your indexes are in src/main/webapp/WEB-INF/classes/config-generic.properties. The directories found in the directory given by 'multiindex.path' property and that have names starting with the 'multiindex.dirprefix' property are treated as MG4J indexes. The names will appear in the Dataset dropdown in the webapp.
+* Hadoop version 0.20.205.0 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ Libs for executing code on a Hadoop map reduce cluster.
+ http://hadoop.apache.org/
-2. Use the maven-war-plugin to build the war file. From the projects root directory run the command
-
- mvn compile (or mvn test)
- mvn war:war (mvn war:exploded maybe of interest to some people too)
-
-This will build the war file Glimmer-?.?.?-SNAPSHOT.war in the target directory.
-
-2. Copy the war into do the deployment directory of your installed Java Servlet container.
-
+* NxParser version 1.2.2 (BSD - http://www.opensource.org/licenses/bsd-license.php)
+ http://code.google.com/p/nxparser/
+
+* MG4j version 4.0.3 (GNU Lesser General Public License - http://www.gnu.org/licenses/lgpl.html)
+ http://mg4j.dsi.unimi.it/
+
+* Java servlet-api version 2.5 (Oracle Binary Code License - http://www.oracle.com/technetwork/java/javase/terms/license/index.html)
+ http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index.html
+
+* Fastutil version 6.4.4 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ Extends the Java™ Collections Framework by providing type-specific maps, sets, lists and queues with a small memory footprint and fast access and insertion
+ http://fastutil.di.unimi.it/
+
+* DSI Utils version 2.0.6 (GNU Lesser General Public License - http://www.gnu.org/licenses/lgpl.html)
+ The DSI utilities are a mish mash of classes accumulated during the last ten years in projects developed at the DSI
+ http://dsiutils.dsi.unimi.it/
+
+* Sux4j version 3.0.4 (GNU Lesser General Public License - http://www.gnu.org/licenses/lgpl.html)
+ Implementation of basic succinct data strucures
+ http://sux.di.unimi.it/
+
+* WebGraph version 3.0.7 (GNU General Public License - http://www.gnu.org/copyleft/gpl.html)
+ WebGraph is a framework for graph compression aimed at studying web graphs
+ http://webgraph.di.unimi.it/
+
+* Colt version 1.2.0 (Colt License - http://acs.lbl.gov/software/colt/license.html)
+ Colt provides a set of Open Source Libraries for High Performance Scientific and Technical Computing in Java
+ http://acs.lbl.gov/software/colt/
+
+* JSAP version 2.1 (JSAP License - http://www.martiansoftware.com/jsap/license.html)
+ Java command line argument processor.
+ http://www.martiansoftware.com/jsap/
+
+* Apache Log4j version 1.2.16 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ Logging framework
+ http://logging.apache.org/log4j/
+
+* Apache Commons IO version 2.2 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ Commons IO is a library of utilities to assist with developing IO functionality.
+ http://commons.apache.org/io/
+
+* Apache Commons Lang version 2.6 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ Lang provides a host of helper utilities for the java.lang API
+ http://commons.apache.org/lang/
+
+* Apache Commons Collections version 3.2.1 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ Commons-Collections seek to build upon the JDK classes by providing new interfaces, implementations and utilities
+ http://commons.apache.org/collections/
+
+* Apache Commons Configuration version 1.8 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ The Commons Configuration software library provides a generic configuration interface which enables a Java application to read configuration data from a variety of sources.
+ http://commons.apache.org/configuration/
+
+* Apache Commons Digester version 2.1 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ XML -> Java object mapping
+ http://commons.apache.org/digester/
+
+* Apache Commons httpclient version 3.1 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ A java HTTP client.
+ http://hc.apache.org/httpclient-3.x/
+
+* Tika version 1.1 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ The Apache Tika™ toolkit detects and extracts metadata and structured text content from various documents...
+ http://tika.apache.org/
+
+* Java Mail version 1.4.5 (Oracle Binary Code License - http://www.oracle.com/technetwork/java/javase/terms/license/index.html)
+ Java mail implementation.
+ http://www.oracle.com/technetwork/java/javamail/index.html
+
+* Sesame version 2.3.2 (a BSD-style license - http://www.openrdf.org/download.jsp)
+ Sesame is a de-facto standard framework for processing RDF data.
+ http://www.openrdf.org/
+
+* Guava version 11.0.2 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ Collection of several of Google's core libraries.
+ http://code.google.com/p/guava-libraries/
+
+* Gson version 2.1 (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ Java library that can be used to convert Java Objects into their JSON representation
+ http://code.google.com/p/google-gson/
+
+* OWL API version 3.3 (GNU Lesser General Public License - http://www.gnu.org/licenses/lgpl.html)
+ The OWL API is a Java API and reference implmentation for creating, manipulating and serialising OWL Ontologies.
+ http://owlapi.sourceforge.net/
+
+* jMock version 2.5.1 (jMock Project License - http://www.jmock.org/license.html)
+ Mocks java objects for testing.
+ http://www.jmock.org/
+
+* Spring Framework version 3.1.1.RELEASE (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ A comprehensive programming and configuration model for modern Java-based enterprise applications
+ http://www.springsource.org/spring-framework#documentation
+
+* Validation-api version 1.0.0.GA (Apache License 2 - http://www.apache.org/licenses/LICENSE-2.0)
+ Jboss's implementation of Java validation JSR-303.
+ http://www.hibernate.org/subprojects/validator.html
+
+* XStream version 1.4.2 (a BSD license - http://xstream.codehaus.org/license.html)
+ A simple library to serialize objects to XML and back again.
+ http://xstream.codehaus.org/
+
+The following 3rd Party code is included as part of this Project:
+
+* The classes com.yahoo.glimmer.indexing.SimpleCompressedDocumentCollectionBuilder & com.yahoo.glimmer.indexing.SimpleCompressedDocumentCollection are
+ modified version of the MG4J classes of the same name. See the above for MG4J's licensing policy.
View
3  pom.xml
@@ -25,9 +25,6 @@
<configuration>
<source>1.6</source>
<target>1.6</target>
- <systemPropertyVariables>
- <propertyName></propertyName>
- </systemPropertyVariables>
</configuration>
</plugin>
<plugin>
View
8 scripts/build-index.sh
@@ -1,5 +1,13 @@
#!/bin/sh
#
+# Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+#
+# 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.
+# See accompanying LICENSE file.
#
INPUT_ARG=${1}
View
10 scripts/query-index.sh
@@ -1,4 +1,14 @@
#!/bin/bash
+#
+# Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+#
+# 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.
+# See accompanying LICENSE file.
+#
#first param: query
#second param: method
View
11 src/main/java/com/yahoo/glimmer/indexing/BySubjectCollectionBuilder.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.io.FastBufferedReader;
import it.unimi.dsi.lang.MutableString;
import it.unimi.dsi.mg4j.document.IdentityDocumentFactory;
View
11 src/main/java/com/yahoo/glimmer/indexing/CombinedTermProcessor.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.lang.MutableString;
import it.unimi.dsi.mg4j.index.DowncaseTermProcessor;
import it.unimi.dsi.mg4j.index.TermProcessor;
View
11 src/main/java/com/yahoo/glimmer/indexing/ConcatenatedDocumentCollection.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.mg4j.document.DocumentCollection;
public class ConcatenatedDocumentCollection extends it.unimi.dsi.mg4j.document.ConcatenatedDocumentCollection {
View
11 src/main/java/com/yahoo/glimmer/indexing/DocSizesGenerator.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.io.OutputBitStream;
import it.unimi.dsi.io.WordReader;
import it.unimi.dsi.lang.MutableString;
View
11 src/main/java/com/yahoo/glimmer/indexing/DocSizesReader.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.IOException;
import it.unimi.dsi.io.InputBitStream;
View
11 src/main/java/com/yahoo/glimmer/indexing/HorizontalDocument.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.io.FastBufferedReader;
import it.unimi.dsi.lang.MutableString;
View
11 src/main/java/com/yahoo/glimmer/indexing/HorizontalDocumentFactory.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.mg4j.document.Document;
import it.unimi.dsi.util.Properties;
View
11 src/main/java/com/yahoo/glimmer/indexing/NonWordTermProcessor.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.lang.MutableString;
import it.unimi.dsi.mg4j.index.TermProcessor;
View
11 src/main/java/com/yahoo/glimmer/indexing/RDFDocument.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap;
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.io.WordReader;
View
11 src/main/java/com/yahoo/glimmer/indexing/RDFDocumentFactory.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.io.BinIO;
import it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction;
import it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap;
View
11 src/main/java/com/yahoo/glimmer/indexing/RDFInputFormat.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.mg4j.document.Document;
import it.unimi.dsi.mg4j.document.DocumentFactory;
import it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory;
View
11 src/main/java/com/yahoo/glimmer/indexing/RDFRecordReader.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.mg4j.document.Document;
import it.unimi.dsi.mg4j.document.DocumentFactory;
View
11 src/main/java/com/yahoo/glimmer/indexing/RDFtoTrecWebConverter.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
View
11 src/main/java/com/yahoo/glimmer/indexing/StatementCollectorHandler.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.util.HashSet;
import java.util.Set;
View
11 src/main/java/com/yahoo/glimmer/indexing/StopwordTermProcessor.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.lang.MutableString;
import it.unimi.dsi.mg4j.index.TermProcessor;
View
11 src/main/java/com/yahoo/glimmer/indexing/TitleListDocumentCollection.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap;
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.io.FastBufferedReader;
View
11 src/main/java/com/yahoo/glimmer/indexing/TriplesCollectionBuilder.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.lang.MutableString;
import it.unimi.dsi.mg4j.document.IdentityDocumentFactory;
View
11 src/main/java/com/yahoo/glimmer/indexing/VerticalDocument.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.io.FastBufferedReader;
import it.unimi.dsi.lang.MutableString;
View
11 src/main/java/com/yahoo/glimmer/indexing/VerticalDocumentFactory.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.mg4j.document.Document;
import it.unimi.dsi.util.Properties;
View
11 src/main/java/com/yahoo/glimmer/indexing/WordArrayReader.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.io.WordReader;
import it.unimi.dsi.lang.MutableString;
View
11 src/main/java/com/yahoo/glimmer/indexing/WordIndexGenerator.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
import it.unimi.dsi.io.FastBufferedReader;
import it.unimi.dsi.io.OutputBitStream;
View
11 src/main/java/com/yahoo/glimmer/indexing/generator/DocumentMapper.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.generator;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.io.WordReader;
import it.unimi.dsi.lang.MutableString;
import it.unimi.dsi.mg4j.document.Document;
View
11 src/main/java/com/yahoo/glimmer/indexing/generator/Index.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.generator;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
import it.unimi.dsi.io.OutputBitStream;
import it.unimi.dsi.mg4j.index.CompressionFlags;
View
11 src/main/java/com/yahoo/glimmer/indexing/generator/Occurrence.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.generator;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
View
11 src/main/java/com/yahoo/glimmer/indexing/generator/TermOccurrencePair.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.generator;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
View
11 src/main/java/com/yahoo/glimmer/indexing/generator/TermOccurrencePairReduce.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.generator;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.io.OutputBitStream;
import it.unimi.dsi.mg4j.document.DocumentFactory;
View
11 src/main/java/com/yahoo/glimmer/indexing/generator/TripleIndexGenerator.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.generator;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory;
import org.apache.hadoop.conf.Configured;
View
11 src/main/java/com/yahoo/glimmer/indexing/preprocessor/ResourceRecordWriter.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.preprocessor;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
View
11 src/main/java/com/yahoo/glimmer/indexing/preprocessor/ResourcesReducer.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.preprocessor;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.IOException;
import org.apache.hadoop.io.Text;
View
11 src/main/java/com/yahoo/glimmer/indexing/preprocessor/TuplesToResourcesMapper.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.preprocessor;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.net.URI;
import java.net.URISyntaxException;
View
11 src/main/java/com/yahoo/glimmer/indexing/preprocessor/TuplesTool.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.preprocessor;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
View
11 src/main/java/com/yahoo/glimmer/query/Context.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
View
11 src/main/java/com/yahoo/glimmer/query/IndexStatistics.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
View
11 src/main/java/com/yahoo/glimmer/query/QueryLogger.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.mg4j.query.nodes.Query;
import org.apache.log4j.Logger;
View
11 src/main/java/com/yahoo/glimmer/query/RDFIndex.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.Hash;
import it.unimi.dsi.fastutil.io.BinIO;
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
View
11 src/main/java/com/yahoo/glimmer/query/RDFQueryParser.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Object2LongFunction;
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
View
11 src/main/java/com/yahoo/glimmer/query/RDFQueryResult.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Object2LongFunction;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
import it.unimi.dsi.mg4j.query.nodes.Query;
View
11 src/main/java/com/yahoo/glimmer/query/RDFResultItem.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Object2LongFunction;
import it.unimi.dsi.mg4j.document.Document;
import it.unimi.dsi.mg4j.document.DocumentCollection;
View
11 src/main/java/com/yahoo/glimmer/query/SetDocumentPriors.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.io.BinIO;
import it.unimi.dsi.mg4j.document.Document;
import it.unimi.dsi.mg4j.index.BitStreamIndex;
View
11 src/main/java/com/yahoo/glimmer/query/Util.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.io.WordReader;
import it.unimi.dsi.lang.MutableString;
import it.unimi.dsi.mg4j.document.Document;
View
11 src/main/java/com/yahoo/glimmer/query/WOOScorer.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.query;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.doubles.DoubleArrays;
import it.unimi.dsi.fastutil.ints.IntList;
import it.unimi.dsi.fastutil.longs.LongList;
View
11 src/main/java/com/yahoo/glimmer/util/ComputeHashTool.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.util;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.big.util.ShiftAddXorSignedStringMap;
import it.unimi.dsi.bits.TransformationStrategies;
import it.unimi.dsi.io.FastBufferedReader;
View
11 src/main/java/com/yahoo/glimmer/util/MapReducePartInputStreamEnumeration.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.util;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;
View
11 src/main/java/com/yahoo/glimmer/util/MergeSortTool.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.util;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
View
453 src/main/java/com/yahoo/glimmer/util/NTriplesUtil.java
@@ -1,453 +0,0 @@
-package com.yahoo.glimmer.util;
-
-/* Sesame - Storage and Querying architecture for RDF and RDF Schema
- * Copyright (C) 2001-2005 Aduna
- *
- * Contact:
- * Aduna
- * Prinses Julianaplein 14 b
- * 3817 CS Amersfoort
- * The Netherlands
- * tel. +33 (0)33 465 99 87
- * fax. +33 (0)33 465 99 87
- *
- * http://aduna.biz/
- * http://www.openrdf.org/
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-import org.openrdf.model.BNode;
-import org.openrdf.model.Literal;
-import org.openrdf.model.Resource;
-import org.openrdf.model.URI;
-import org.openrdf.model.Value;
-import org.openrdf.model.ValueFactory;
-
-/**
- * Utility methods for N-Triples encoding/decoding.
- **/
-public class NTriplesUtil {
-
- /*------------------------------------------------------+
- | Methods |
- +------------------------------------------------------*/
-
- /**
- * Parses an N-Triples value, creates an object for it using the supplied
- * ValueFactory and returns this object.
- *
- * @param nTriplesValue
- * The N-Triples value to parse.
- * @param valueFactory
- * The ValueFactory to use for creating the object.
- * @return An object representing the parsed value.
- * @exception IllegalArgumentException
- * If the supplied value could not be parsed correctly.
- **/
- public static Value parseValue(String nTriplesValue, ValueFactory valueFactory) throws IllegalArgumentException {
- if (nTriplesValue.startsWith("<")) {
- return parseURI(nTriplesValue, valueFactory);
- } else if (nTriplesValue.startsWith("_:")) {
- return parseBNode(nTriplesValue, valueFactory);
- } else if (nTriplesValue.startsWith("\"")) {
- return parseLiteral(nTriplesValue, valueFactory);
- } else {
- throw new IllegalArgumentException("Not a legal N-Triples value: " + nTriplesValue);
- }
- }
-
- /**
- * Parses an N-Triples resource, creates an object for it using the supplied
- * ValueFactory and returns this object.
- *
- * @param nTriplesResource
- * The N-Triples resource to parse.
- * @param valueFactory
- * The ValueFactory to use for creating the object.
- * @return An object representing the parsed resource.
- * @exception IllegalArgumentException
- * If the supplied resource could not be parsed correctly.
- **/
- public static Resource parseResource(String nTriplesResource, ValueFactory valueFactory) throws IllegalArgumentException {
- if (nTriplesResource.startsWith("<")) {
- return parseURI(nTriplesResource, valueFactory);
- } else if (nTriplesResource.startsWith("_:")) {
- return parseBNode(nTriplesResource, valueFactory);
- } else {
- throw new IllegalArgumentException("Not a legal N-Triples resource: " + nTriplesResource);
- }
- }
-
- /**
- * Parses an N-Triples URI, creates an object for it using the supplied
- * ValueFactory and returns this object.
- *
- * @param nTriplesURI
- * The N-Triples URI to parse.
- * @param valueFactory
- * The ValueFactory to use for creating the object.
- * @return An object representing the parsed URI.
- * @exception IllegalArgumentException
- * If the supplied URI could not be parsed correctly.
- **/
- public static URI parseURI(String nTriplesURI, ValueFactory valueFactory) throws IllegalArgumentException {
- if (nTriplesURI.startsWith("<") && nTriplesURI.endsWith(">")) {
- String uri = nTriplesURI.substring(1, nTriplesURI.length() - 1);
- uri = unescapeString(uri);
- return valueFactory.createURI(uri);
- } else {
- throw new IllegalArgumentException("Not a legal N-Triples URI: " + nTriplesURI);
- }
- }
-
- /**
- * Parses an N-Triples bNode, creates an object for it using the supplied
- * ValueFactory and returns this object.
- *
- * @param nTriplesBNode
- * The N-Triples bNode to parse.
- * @param valueFactory
- * The ValueFactory to use for creating the object.
- * @return An object representing the parsed bNode.
- * @exception IllegalArgumentException
- * If the supplied bNode could not be parsed correctly.
- **/
- public static BNode parseBNode(String nTriplesBNode, ValueFactory valueFactory) throws IllegalArgumentException {
- if (nTriplesBNode.startsWith("_:")) {
- return valueFactory.createBNode(nTriplesBNode.substring(2));
- } else {
- throw new IllegalArgumentException("Not a legal N-Triples URI: " + nTriplesBNode);
- }
- }
-
- /**
- * Parses an N-Triples literal, creates an object for it using the supplied
- * ValueFactory and returns this object.
- *
- * @param nTriplesLiteral
- * The N-Triples literal to parse.
- * @param valueFactory
- * The ValueFactory to use for creating the object.
- * @return An object representing the parsed literal.
- * @exception IllegalArgumentException
- * If the supplied literal could not be parsed correctly.
- **/
- public static Literal parseLiteral(String nTriplesLiteral, ValueFactory valueFactory) throws IllegalArgumentException {
- if (nTriplesLiteral.startsWith("\"")) {
- // Find string separation points
- int endLabelIdx = _findEndOfLabel(nTriplesLiteral);
-
- if (endLabelIdx != -1) {
- int startLangIdx = nTriplesLiteral.indexOf("@", endLabelIdx);
- int startDtIdx = nTriplesLiteral.indexOf("^^", endLabelIdx);
-
- if (startLangIdx != -1 && startDtIdx != -1) {
- throw new IllegalArgumentException("Literals can not have both a language and a datatype");
- }
-
- // Get label
- String label = nTriplesLiteral.substring(1, endLabelIdx);
- label = unescapeString(label);
-
- if (startLangIdx != -1) {
- // Get language
- String language = nTriplesLiteral.substring(startLangIdx + 1);
- return valueFactory.createLiteral(label, language);
- } else if (startDtIdx != -1) {
- // Get datatype
- String datatype = nTriplesLiteral.substring(startDtIdx + 2);
- URI dtURI = parseURI(datatype, valueFactory);
- return valueFactory.createLiteral(label, dtURI);
- } else {
- return valueFactory.createLiteral(label);
- }
- }
- }
-
- throw new IllegalArgumentException("Not a legal N-Triples literal: " + nTriplesLiteral);
- }
-
- /**
- * Finds the end of the label in a literal string. This method takes into
- * account that characters can be escaped using backslashes.
- *
- * @return The index of the double quote ending the label, or <tt>-1</tt> if
- * it could not be found.
- **/
- private static int _findEndOfLabel(String nTriplesLiteral) {
- // First character of literal is guaranteed to be a double
- // quote, start search at second character.
-
- boolean previousWasBackslash = false;
-
- for (int i = 1; i < nTriplesLiteral.length(); i++) {
- char c = nTriplesLiteral.charAt(i);
-
- if (c == '"' && !previousWasBackslash) {
- return i;
- } else if (c == '\\' && !previousWasBackslash) {
- // start of escape
- previousWasBackslash = true;
- } else if (previousWasBackslash) {
- // c was escaped
- previousWasBackslash = false;
- }
- }
-
- return -1;
- }
-
- /**
- * Creates an N-Triples string for the supplied value.
- **/
- public static String toNTriplesString(Value value) {
- if (value instanceof Resource) {
- return toNTriplesString((Resource) value);
- } else {
- return toNTriplesString((Literal) value);
- }
- }
-
- /**
- * Creates an N-Triples string for the supplied resource.
- **/
- public static String toNTriplesString(Resource resource) {
- if (resource instanceof URI) {
- return toNTriplesString((URI) resource);
- } else {
- return toNTriplesString((BNode) resource);
- }
- }
-
- /**
- * Creates an N-Triples string for the supplied URI.
- **/
- public static String toNTriplesString(URI uri) {
- return "<" + escapeString(uri.toString()) + ">";
- }
-
- /**
- * Creates an N-Triples string for the supplied bNode.
- **/
- public static String toNTriplesString(BNode bNode) {
- return "_:" + bNode.getID();
- }
-
- /**
- * Creates an N-Triples string for the supplied literal.
- **/
- public static String toNTriplesString(Literal lit) {
- // Do some character escaping on the label:
- StringBuffer result = new StringBuffer(128);
- result.append("\"");
- result.append(escapeString(lit.getLabel()));
- result.append("\"");
-
- if (lit.getDatatype() != null) {
- // Append the literal's datatype
- result.append("^^");
- result.append(toNTriplesString(lit.getDatatype()));
- } else if (lit.getLanguage() != null) {
- // Append the literal's language
- result.append("@");
- result.append(lit.getLanguage());
- }
-
- return result.toString();
- }
-
- /**
- * Checks whether the supplied character is a letter or number according to
- * the N-Triples specification.
- *
- * @see #isLetter
- * @see #isNumber
- **/
- public static boolean isLetterOrNumber(int c) {
- return isLetter(c) || isNumber(c);
- }
-
- /**
- * Checks whether the supplied character is a letter according to the
- * N-Triples specification. N-Triples letters are A - Z and a - z.
- **/
- public static boolean isLetter(int c) {
- return (c >= 65 && c <= 90) || // A - Z
- (c >= 97 && c <= 122); // a - z
- }
-
- /**
- * Checks whether the supplied character is a number according to the
- * N-Triples specification. N-Triples numbers are 0 - 9.
- **/
- public static boolean isNumber(int c) {
- return (c >= 48 && c <= 57); // 0 - 9
- }
-
- /**
- * Escapes a Unicode string to an all-ASCII character sequence. Any special
- * characters are escaped using backslashes (<tt>"</tt> becomes <tt>\"</tt>,
- * etc.), and non-ascii/non-printable characters are escaped using Unicode
- * escapes (<tt>&#x5C;uxxxx</tt> and <tt>&#x5C;Uxxxxxxxx</tt>).
- **/
- public static String escapeString(String label) {
- int labelLength = label.length();
- StringBuffer result = new StringBuffer(2 * labelLength);
-
- for (int i = 0; i < labelLength; i++) {
- char c = label.charAt(i);
- int cInt = (int) c;
-
- if (c == '\\') {
- result.append("\\\\");
- } else if (c == '"') {
- result.append("\\\"");
- } else if (c == '\n') {
- result.append("\\n");
- } else if (c == '\r') {
- result.append("\\r");
- } else if (c == '\t') {
- result.append("\\t");
- } else if (cInt >= 0x0 && cInt <= 0x8 || cInt == 0xB || cInt == 0xC || cInt >= 0xE && cInt <= 0x1F || cInt >= 0x7F && cInt <= 0xFFFF) {
- result.append("\\u");
- result.append(toHexString(cInt, 4));
- } else if (cInt >= 0x10000 && cInt <= 0x10FFFF) {
- result.append("\\U");
- result.append(toHexString(cInt, 8));
- } else {
- result.append(c);
- }
- }
-
- return result.toString();
- }
-
- /**
- * Unescapes an escaped Unicode string. Any Unicode sequences (
- * <tt>&#x5C;uxxxx</tt> and <tt>&#x5C;Uxxxxxxxx</tt>) are restored to the
- * value indicated by the hexadecimal argument and any backslash-escapes (
- * <tt>\"</tt>, <tt>\\</tt>, etc.) are decoded to their original form.
- *
- * @param s
- * An escaped Unicode string.
- * @return The unescaped string.
- * @exception IllegalArgumentException
- * If the supplied string is not a correctly escaped
- * N-Triples string.
- **/
- public static String unescapeString(String s) {
- int backSlashIdx = s.indexOf('\\');
-
- if (backSlashIdx == -1) {
- // No escaped characters found
- return s;
- }
-
- int startIdx = 0;
- int sLength = s.length();
- StringBuffer buf = new StringBuffer(sLength);
-
- while (backSlashIdx != -1) {
- buf.append(s.substring(startIdx, backSlashIdx));
-
- if (backSlashIdx + 1 >= sLength) {
- throw new IllegalArgumentException("Unescaped backslash in: " + s);
- }
-
- char c = s.charAt(backSlashIdx + 1);
-
- if (c == 't') {
- buf.append('\t');
- startIdx = backSlashIdx + 2;
- } else if (c == 'r') {
- buf.append('\r');
- startIdx = backSlashIdx + 2;
- } else if (c == 'n') {
- buf.append('\n');
- startIdx = backSlashIdx + 2;
- } else if (c == '"') {
- buf.append('"');
- startIdx = backSlashIdx + 2;
- } else if (c == '\\') {
- buf.append('\\');
- startIdx = backSlashIdx + 2;
- } else if (c == 'u') {
- // \\uxxxx
- if (backSlashIdx + 5 >= sLength) {
- throw new IllegalArgumentException("Incomplete Unicode escape sequence in: " + s);
- }
- String xx = s.substring(backSlashIdx + 2, backSlashIdx + 6);
-
- try {
- c = (char) Integer.parseInt(xx, 16);
- buf.append((char) c);
-
- startIdx = backSlashIdx + 6;
- } catch (NumberFormatException e) {
- throw new IllegalArgumentException("Illegal Unicode escape sequence '\\u" + xx + "' in: " + s);
- }
- } else if (c == 'U') {
- // \\Uxxxxxxxx
- if (backSlashIdx + 9 >= sLength) {
- throw new IllegalArgumentException("Incomplete Unicode escape sequence in: " + s);
- }
- String xx = s.substring(backSlashIdx + 2, backSlashIdx + 10);
-
- try {
- c = (char) Integer.parseInt(xx, 16);
- buf.append((char) c);
-
- startIdx = backSlashIdx + 10;
- } catch (NumberFormatException e) {
- throw new IllegalArgumentException("Illegal Unicode escape sequence '\\U" + xx + "' in: " + s);
- }
- } else {
- throw new IllegalArgumentException("Unescaped backslash in: " + s);
- }
-
- backSlashIdx = s.indexOf('\\', startIdx);
- }
-
- buf.append(s.substring(startIdx));
-
- return buf.toString();
- }
-
- /**
- * Converts a decimal value to a hexadecimal string represention of the
- * specified length.
- *
- * @param decimal
- * A decimal value.
- * @param stringLength
- * The length of the resulting string.
- **/
- public static String toHexString(int decimal, int stringLength) {
- StringBuffer result = new StringBuffer(stringLength);
-
- String hexVal = Integer.toHexString(decimal).toUpperCase();
-
- // insert zeros if hexVal has less than stringLength characters:
- int nofZeros = stringLength - hexVal.length();
- for (int i = 0; i < nofZeros; i++) {
- result.append('0');
- }
-
- result.append(hexVal);
-
- return result.toString();
- }
-}
View
12 src/main/java/com/yahoo/glimmer/util/NTuplesWriter.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.util;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.IOException;
import java.io.StringWriter;
import java.net.URL;
@@ -17,6 +28,7 @@
import org.openrdf.model.impl.URIImpl;
import org.openrdf.rio.RDFHandler;
import org.openrdf.rio.RDFHandlerException;
+import org.openrdf.rio.ntriples.NTriplesUtil;
/**
* This writer can write either NTriples or a more verbose format with URL and
View
11 src/main/java/com/yahoo/glimmer/util/ReadersWriterMergeSort.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.util;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Writer;
View
11 src/main/java/com/yahoo/glimmer/util/Util.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.util;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
/**
* Utility methods for microsearch
*
View
11 src/main/java/com/yahoo/glimmer/vocabulary/OwlUtils.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.vocabulary;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
View
11 src/main/java/com/yahoo/glimmer/web/DocObjectView.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.web;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.mg4j.document.Document;
import it.unimi.dsi.mg4j.query.ResultItem;
View
11 src/main/java/com/yahoo/glimmer/web/FormatParameterToViewNameTranslator.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.web;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.servlet.RequestToViewNameTranslator;
View
11 src/main/java/com/yahoo/glimmer/web/IndexMap.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.web;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
View
11 src/main/java/com/yahoo/glimmer/web/JsObjectView.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.web;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.PrintWriter;
import java.lang.reflect.Type;
import java.text.DateFormat;
View
11 src/main/java/com/yahoo/glimmer/web/Querier.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.web;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.mg4j.index.Index;
View
11 src/main/java/com/yahoo/glimmer/web/QueryCommand.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.web;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
View
11 src/main/java/com/yahoo/glimmer/web/QueryController.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.web;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
import it.unimi.dsi.mg4j.query.nodes.Query;
import it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException;
View
11 src/main/java/com/yahoo/glimmer/web/XmlObjectView.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.web;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.mg4j.document.Document;
import it.unimi.dsi.mg4j.query.ResultItem;
View
67 src/main/resources/t_namespaces.html
@@ -0,0 +1,67 @@
+<table cellspacing="0" cellpadding="3">
+<tr><th>Prefix</th><th>Name</th><th>Description</th><th>Namespace</th></tr>
+<!-- Not a good idea to use Atom both for syntax and semantics
+<tr><td>atom</td><td>Atom</td><td>A vocabulary for Atom concepts</td><td>http://www.w3.org/2005/Atom#</td></tr>
+-->
+
+<tr><td>abmeta</td><td>AB Meta</td><td>AB Meta vocabulary</td><td>http://www.abmeta.org/ns#</td></tr>
+<tr><td>cc</td><td>Creative Commons</td><td>Creative Commons Licensing terms</td><td>http://creativecommons.org/ns#</td></tr>
+
+<tr><td>dbpedia</td><td>DBPedia</td><td>Subject identifiers based on Wikipedia</td><td>http://dbpedia.org/resource/</td></tr>
+<!-- Original DC namespace
+<tr><td>dc</td><td>Dublic Core</td><td>Dublin Core elements</td><td>http://purl.org/dc/elements/1.1/</td></tr>
+-->
+<tr><td>dc</td><td>Dublin Core</td><td>Dublin Core terms</td><td>http://purl.org/dc/terms/</td></tr>
+<tr><td>foaf</td><td>FOAF</td><td>Friend-of-a-Friend-Personal profiles and social networks</td><td>http://xmlns.com/foaf/0.1/</td></tr>
+<tr><td>fb</td><td>Freebase</td><td>Freebase concepts</td><td>http://rdf.freebase.com/ns/</td></tr>
+
+<tr><td>feed</td><td>SearchMonkey Feed</td><td>A vocabulary for feeds</td><td>http://search.yahoo.com/searchmonkey/feed/</td></tr>
+<tr><td>gb</td><td>GoogleBase</td><td>GoogleBase vocabulary</td><td>http://search.yahoo.com/searchmonkey/googlebase/</td></tr>
+<tr><td>geo</td><td>GeoRSS</td><td>geoRSS-Geographic information</td><td>http://www.georss.org/georss#</td></tr>
+<tr><td>media</td><td>SearchMonkey Media</td><td>Media vocabulary</td><td>http://search.yahoo.com/searchmonkey/media/</td></tr>
+
+<tr><td>gr</td><td>GoodRelations</td><td>GoodRelations e-commerce vocabulary</td><td>http://purl.org/goodrelations/v1#</td></tr>
+<tr><td>review</td><td>Review</td><td>RDF Review-Reviews</td><td>http://purl.org/stuff/rev#</td></tr>
+<tr><td>sioc</td><td>SIOC</td><td>Blogs, forums, discussion sites</td><td>http://rdfs.org/sioc/ns#</td></tr>
+<tr><td>ctag</td><td>Common Tag</td><td>CommonTag vocabulary for semantic tagging</td><td>http://commontag.org/ns#</td></tr>
+<tr><td>stag</td><td>Common Tag</td><td>CommonTag vocabulary for semantic tagging</td><td>http://commontag.org/ns#</td></tr>
+
+<tr><td>umbel</td><td>UMBEL</td><td>UMBEL ontology of subjects</td><td>http://umbel.org/umbel/sc/</td></tr>
+<tr><td>vcal</td><td>VCalendar</td><td>RDF Calendar-Calendar information</td><td>http://www.w3.org/2002/12/cal/icaltzd#</td></tr>
+<tr><td>vcard</td><td>VCard</td><td>VCard-Business and personal addresses</td><td>http://www.w3.org/2006/vcard/ns#</td></tr>
+<tr><td>rdf</td><td>RDF</td><td>RDF</td><td>http://www.w3.org/1999/02/22-rdf-syntax-ns#</td></tr>
+
+<tr><td>rdfs</td><td>RDF Schema</td><td>RDF Schema</td><td>http://www.w3.org/2000/01/rdf-schema#</td></tr>
+<tr><td>rel</td><td>SearchMonkey Relations</td><td>Generic relation vocabulary (deprecated)</td><td>http://search.yahoo.com/searchmonkey-relation/</td></tr>
+<tr><td>owl</td><td>OWL ontology language</td><td>The Web Ontology Language (OWL)</td><td>http://www.w3.org/2002/07/owl#</td></tr>
+<tr><td>action</td><td>SearchMonkey Actions</td><td>Vocabulary for actions (deep links)</td><td>http://search.yahoo.com/searchmonkey/action/</td></tr>
+
+<tr><td>assert</td><td>SearchMonkey Assertions (deprecated)</td><td>Assertion vocabulary (deprecated)</td><td>http://search.yahoo.com/searchmonkey/assert/</td></tr>
+<tr><td>commerce</td><td>SearchMonkey Commerce</td><td>A vocabulary for commerce-related metadata</td><td>http://search.yahoo.com/searchmonkey/commerce/</td></tr>
+<tr><td>context</td><td>SearchMonkey Context (deprecated)</td><td>Context vocabulary (deprecated)</td><td>http://search.yahoo.com/searchmonkey/context/</td></tr>
+<tr><td>extraction</td><td>SearchMonkey Extraction (deprecated)</td><td>SearchMonkey Extraction vocabulary (deprecated)</td><td>http://search.yahoo.com/searchmonkey/extraction/</td></tr>
+
+<tr><td>finance</td><td>SearchMonkey Finance</td><td>Finance vocabulary (reserved)</td><td>http://search.yahoo.com/searchmonkey/finance/</td></tr>
+<tr><td>job</td><td>SearchMonkey Jobs</td><td>A vocabulary for job-related metadata</td><td>http://search.yahoo.com/searchmonkey/job/</td></tr>
+<tr><td>news</td><td>SearchMonkey News</td><td>News vocabulary (reserved)</td><td>http://search.yahoo.com/searchmonkey/news/</td></tr>
+<tr><td>page</td><td>SearchMonkey Page (deprecated)</td><td>A vocabulary for page-level metadata (deprecated)</td><td>http://search.yahoo.com/searchmonkey/page/</td></tr>
+
+<tr><td>product</td><td>SearchMonkey Product</td><td>A vocabulary for product-related metadata</td><td>http://search.yahoo.com/searchmonkey/product/</td></tr>
+<tr><td>reference</td><td>SearchMonkey Reference</td><td>A vocabulary for references and links</td><td>http://search.yahoo.com/searchmonkey/reference/</td></tr>
+<tr><td>resume</td><td>SearchMonkey Resume</td><td>A vocabulary for resumes</td><td>http://search.yahoo.com/searchmonkey/resume/</td></tr>
+<tr><td>social</td><td>SearchMonkey Social</td><td>A vocabulary for social information</td><td>http://search.yahoo.com/searchmonkey/social/</td></tr>
+
+<tr><td>store</td><td>Yahoo Stores</td><td>Yahoo Stores vocabulary</td><td>http://search.yahoo.com/searchmonkey/store/</td></tr>
+<tr><td>tagspace</td><td>SearchMonkey Tagspace (deprecated)</td><td>A vocabulary for tagsets</td><td>http://search.yahoo.com/searchmonkey/tagspace/</td></tr>
+<tr><td>country </td><td>SearchMonkey Country Datatypes</td><td>A datatype used to indicate a particular country</td><td>http://search.yahoo.com/searchmonkey-datatype/country/</td></tr>
+<tr><td>currency</td><td>SearchMonkey Currency Datatypes</td><td>A datatype used to indicate a particular currency</td><td>http://search.yahoo.com/searchmonkey-datatype/currency/</td></tr>
+
+<tr><td>use</td><td>SearchMonkey Use Datatypes</td><td>A datatype used to differentiate use of a property</td><td>http://search.yahoo.com/searchmonkey-datatype/use/</td></tr>
+<tr><td>xfn</td><td>XFN</td><td>A vocabulary to represent human relationships</td><td>http://gmpg.org/xfn/11#</td></tr>
+<tr><td>xsd</td><td>XML Schema Datatypes</td><td>The XML Schema data types</td><td>http://www.w3.org/2001/XMLSchema#</td></tr>
+<tr><td>xhtml</td><td>XHTML</td><td>XHTML namespace</td><td>http://www.w3.org/1999/xhtml/vocab#</td></tr>
+
+<tr><td>mm</td><td>Intel Mashmaker</td><td>Intel Mashmaker namespace</td><td>http://mashmaker.intel.com</td></tr>
+<tr><td>grdv</td><td>Google RDF Data Vocabulary</td><td>Google's RDF vocabulary used in Rich Snippets</td><td>http://rdf.data-vocabulary.org/#</td></tr>
+
+</table>
View
11 src/test/java/com/yahoo/glimmer/indexing/AbstractDocumentFactoryTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.fastutil.objects.Reference2ObjectOpenHashMap;
import it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory;
View
11 src/test/java/com/yahoo/glimmer/indexing/HorizontalDocumentFactoryTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
View
11 src/test/java/com/yahoo/glimmer/indexing/VerticalDocumentFactoryTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
View
11 src/test/java/com/yahoo/glimmer/indexing/generator/DocumentMapperTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.generator;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import static org.junit.Assert.assertEquals;
import it.unimi.dsi.fastutil.chars.CharArraySet;
import it.unimi.dsi.fastutil.chars.CharSet;
View
11 src/test/java/com/yahoo/glimmer/indexing/generator/TermOccurrencePairReduceTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.generator;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import it.unimi.dsi.mg4j.index.FileIndex;
View
11 src/test/java/com/yahoo/glimmer/indexing/preprocessor/ResourceRecordWriterTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.preprocessor;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
View
11 src/test/java/com/yahoo/glimmer/indexing/preprocessor/ResourcesReducerTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.preprocessor;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.IOException;
import java.util.Arrays;
import java.util.Iterator;
View
11 src/test/java/com/yahoo/glimmer/indexing/preprocessor/TextMatcher.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.preprocessor;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import static org.junit.Assert.assertEquals;
import org.apache.hadoop.io.Text;
import org.hamcrest.BaseMatcher;
View
11 src/test/java/com/yahoo/glimmer/indexing/preprocessor/TuplesToResourcesMapperTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.indexing.preprocessor;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import java.io.IOException;
import org.apache.hadoop.io.LongWritable;
View
11 src/test/java/com/yahoo/glimmer/util/ComputeHashTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.util;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import it.unimi.dsi.big.util.ShiftAddXorSignedStringMap;
View
11 src/test/java/com/yahoo/glimmer/util/ReadersWriterMergeSortTest.java
@@ -1,5 +1,16 @@
package com.yahoo.glimmer.util;
+/*
+ * Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ *
+ * 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.
+ * See accompanying LICENSE file.
+ */
+
import static org.junit.Assert.assertEquals;
import java.io.BufferedReader;
Please sign in to comment.
Something went wrong with that request. Please try again.