http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/LICENSE ---------------------------------------------------------------------- diff --git a/jena-fuseki/LICENSE b/jena-fuseki/LICENSE deleted file mode 100644 index 5110d66..0000000 --- a/jena-fuseki/LICENSE +++ /dev/null @@ -1,224 +0,0 @@ - - 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: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) 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 - - (d) 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. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - 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. - -- - - - - - - - - - - - - - - - - - - - - - - - -============================================================== - Jetty Web Container - Copyright 1995-2012 Mort Bay Consulting Pty Ltd. -============================================================== - -The Jetty Web Container is Copyright Mort Bay Consulting Pty Ltd -unless otherwise noted. - -Jetty is dual licensed under both - - * The Apache 2.0 License - http://www.apache.org/licenses/LICENSE-2.0.html - - and - - * The Eclipse Public 1.0 License - http://www.eclipse.org/legal/epl-v10.html - -Jetty may be distributed under either license.
http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/NOTICE ---------------------------------------------------------------------- diff --git a/jena-fuseki/NOTICE b/jena-fuseki/NOTICE deleted file mode 100644 index 9e0e009..0000000 --- a/jena-fuseki/NOTICE +++ /dev/null @@ -1,16 +0,0 @@ -Apache Jena - module Fuseki -Copyright 2011, 2012, 2013, 2014 The Apache Software Foundation - -This product includes software developed at -The Apache Software Foundation (http://www.apache.org/). - -Portions of this software were originally based on the following: - - Copyright 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP - - Copyright 2010, 2011 Epimorphics Ltd. - - Copyright 2010, 2011 Talis Systems Ltd. -These have been licensed to the Apache Software Foundation under a software grant. - -- - - - - - - - - - - - - - - - - - - - - - - - -Portions of this software include software from Mort Bay Consulting Pty. Ltd. - - Copyright (c) 2004-2009 Mort Bay Consulting Pty. Ltd. http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/ReleaseNotes.txt ---------------------------------------------------------------------- diff --git a/jena-fuseki/ReleaseNotes.txt b/jena-fuseki/ReleaseNotes.txt deleted file mode 100644 index c849d56..0000000 --- a/jena-fuseki/ReleaseNotes.txt +++ /dev/null @@ -1,104 +0,0 @@ -==== Fuseki - -== Fuseki 1.0.1 - -+ JENA-600 : Support GZipped uploads correctly i.e. files with .foo.gz style - extensions - -== Fuseki 1.0.0 -This is the final version of what was 0.2.8 - -== Fuseki 0.2.8 - -+ jena-text added to the server : Lucene/solr backed search: - http://jena.apache.org/documentation/query/text-query.html - -+ Upgrade to Jetty 8.1.11.v20130520 -+ JENA-522 : Fix of occasional "Currently in a locked region" errors -+ JENA-499 : --localhost will cause the server to only listen to the loopback interface - -== Fuseki 0.2.7 - -+ JENA-422 : Improved service startup script (Linux) -+ JENA-440 : Query timeouts fixed. Fuseki behavior may change - to the reflect the fixes to ARQ in this area. -+ Exact layout in output format Turtle may vary due to changes in Jena. -+ JENA-439 : Return 503, not 408, on query timeout. -+ JENA-433 : Absent Accept header could cause NPE. - -== Fuseki 0.2.6 - -+ Upgrade to Jetty 8.1.8.v20121106 -+ Uses Jena 2.10.0. -+ JENA-376 : Fuseki linux service script : Either use options as given or use defaults, not append defaults to any given. -+ JENA-387 : Fuseki includes request ID in response headers as Fuseki-Request-ID to allow correlating problem HTTP responses with Fuseki log output -+ JENA-309 : If supported by the underlying storage engine, Fuseki can exploit transactions in order to stream SPARQL Update requests - -== Fuseki 0.2.5 - -+ JENA-334 - Fix for Fuseki start script fails when invoked with full pathname - -== Fuseki 0.2.4 - -+ Upgrade Jetty dependency to 7.6.5.v20120716 -+ JENA-307 - Close QueryExecution object after query execution. -+ JENA-295 - Implement using-graph-uri= and using-named-graph-uri= -+ Add support for default-graph-uri= and named-graph-uri= query parameters to a dataset. - It picks the specific graphs out of the dataset for the query. - -== Fuseki 0.2.3 - -+ Add a script to support running Fuseki as a service (JENA-268) -+ (TDB change) Remove excessive and harmless warnings in log file. - -== Fuseki 0.2.2 - -+ This version picks up bug fixes from TDB and ARQ. - This includes problems with concurrent operations. - -== Fuseki 0.2.1 - -+ Switch from JSPs to Velocity. - This means the standalone jar does not contain a JSP engine anymore. - -+ Service by configuration file, command line argument --config= - -+ Add a servlet filter that processes Accept-Encoding - Result are now compressed if the client request asks for that (JENA-209) - -+ Rename packages to be org.apache.jena.fuseki. - -+ --jetty-config= Use a file to configure the jetty server (connector type, parms of connector like "host"). - Replaces --host. See Jetty configuration documentation. - -+ General purpose SPARQL processor servlet written (not enabled) - -+ XSLT style sheet for SPARQL XML results now puts clickable links in the results - query goes back to the server. - -+ JENA-74 (from Brian McBride): --host= to select the interface to listen on. Use with --host=localhost if using Apache as a front-end. - -+ Add --timeout: adds a timeout to all query executions - -+ Split logging into 2 loggers: general messages and per-request messages. - http://openjena.org/wiki/Fuseki#Logging - -== Fuseki 0.2.0 - -+ Validators now include: - Query - Update - RDF (non-XML formats) - IRI - -+ HTTP request error pages now in "text/plain;charset=utf-8" -+ Location of a TDB database must exist when server starts. - -+ Form parameter name for SPARQL Update sent by HTML form changed from request= to update= - Likely direction of SPARQL-WG. - -+ Internal consistency checking (also TDB internal consistecy checking). - You should not see any warnings. - -== Fuseki 0.1.0 -First release. - http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/SEE_FUSEKI2 ---------------------------------------------------------------------- diff --git a/jena-fuseki/SEE_FUSEKI2 b/jena-fuseki/SEE_FUSEKI2 deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/assembly-dist.xml ---------------------------------------------------------------------- diff --git a/jena-fuseki/assembly-dist.xml b/jena-fuseki/assembly-dist.xml deleted file mode 100644 index 443528d..0000000 --- a/jena-fuseki/assembly-dist.xml +++ /dev/null @@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You 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. ---> - -<!-- -The distribution. -Assumes jar made and onejar has been assembled. ---> - -<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> - - <id>distribution</id> - - <formats> - <format>zip</format> - <format>tar.gz</format> - </formats> - - <baseDirectory>${project.artifactId}-${project.version}</baseDirectory> - - <files> - <file> - <source>${project.build.directory}/${server.jar.name}.jar</source> - <outputDirectory></outputDirectory> - <destName>fuseki-server.jar</destName> - </file> - <!-- include sources in binary distribution? - <file> - <source>${project.artifactId}-${project.version}-sources.jar</source> - <outputDirectory></outputDirectory> - </file> - --> - <file> - <source>dist/LICENSE-dist</source> - <destName>LICENSE</destName> - </file> - <file> - <source>dist/NOTICE-dist</source> - <destName>NOTICE</destName> - </file> - </files> - - <fileSets> - <fileSet> - <outputDirectory></outputDirectory> - <includes> - <include>README*</include> - <include>ReleaseNotes.txt</include> - </includes> - </fileSet> - - <fileSet> - <outputDirectory></outputDirectory> - <includes> - <include>log4j.properties</include> - <include>fuseki</include> - <include>fuseki-server</include> - <include>fuseki-server.bat</include> - <include>config*.ttl</include> - <include>s-*</include> - <include>pages/*</include> - <include>Data/*</include> - </includes> - </fileSet> - </fileSets> -</assembly> http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/assembly-soh.xml ---------------------------------------------------------------------- diff --git a/jena-fuseki/assembly-soh.xml b/jena-fuseki/assembly-soh.xml deleted file mode 100644 index f379911..0000000 --- a/jena-fuseki/assembly-soh.xml +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You 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. ---> -<!-- -The SOH distribution. ---> - -<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> - - <id>soh</id> - - <formats> - <format>zip</format> - </formats> - - <baseDirectory>apache-${project.artifactId}-${project.version}</baseDirectory> - - <fileSets> - <fileSet> - <includes> - <include>s-*</include> - </includes> - </fileSet> - </fileSets> -</assembly> http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/config-examples.ttl ---------------------------------------------------------------------- diff --git a/jena-fuseki/config-examples.ttl b/jena-fuseki/config-examples.ttl deleted file mode 100644 index cff5141..0000000 --- a/jena-fuseki/config-examples.ttl +++ /dev/null @@ -1,123 +0,0 @@ -# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 - -## A collection of example configurations for Fuseki - -@prefix : <#> . -@prefix fuseki: <http://jena.apache.org/fuseki#> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . - -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . -@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . - -[] rdf:type fuseki:Server ; - # Timeout - server-wide default: milliseconds. - # Format 1: "1000" -- 1 second timeout - # Format 2: "10000,60000" -- 10s timeout to first result, then 60s timeout to for rest of query. - # See java doc for ARQ.queryTimeout - # ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "10000" ] ; - - # ja:loadClass "your.code.Class" ; - - fuseki:services ( - <#service1> - <#service2> - <#service3> - ) . - -# Custom code. -[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" . - -# TDB -tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset . -tdb:GraphTDB rdfs:subClassOf ja:Model . - -## --------------------------------------------------------------- -## Updatable in-memory dataset. - -<#service1> rdf:type fuseki:Service ; - # URI of the dataset -- http://host:port/ds - fuseki:name "ds" ; - - # SPARQL query services e.g. http://host:port/ds/sparql?query=... - fuseki:serviceQuery "sparql" ; - fuseki:serviceQuery "query" ; - # SPARQL Update service -- http://host:port/ds/update?request=... - fuseki:serviceUpdate "update" ; # SPARQL query service -- /ds/update - - # Upload service -- http://host:port/ds/upload?graph=default or ?graph=URI or ?default - # followed by a multipart body, each part being RDF syntax. - # Syntax determined by the file name extension. - fuseki:serviceUpload "upload" ; # Non-SPARQL upload service - - # SPARQL Graph store protocol (read and write) - # GET, PUT, POST DELETE to http://host:port/ds/data?graph= or ?default= - fuseki:serviceReadWriteGraphStore "data" ; - - # A separate read-only graph store endpoint: - fuseki:serviceReadGraphStore "get" ; # Graph store protocol (read only) -- /ds/get - - fuseki:dataset <#emptyDataset> ; - . - -## In-memory, initially empty. -<#emptyDataset> rdf:type ja:RDFDataset . - -## --------------------------------------------------------------- -## Read-only access to a small books database. - -<#service2> rdf:type fuseki:Service ; - fuseki:name "books" ; # http://host:port/books - fuseki:serviceQuery "query" ; # SPARQL query service - fuseki:serviceReadGraphStore "get" ; # SPARQL Graph store protocol (read only) - fuseki:dataset <#books> ; - # Configuration - . - -<#books> rdf:type ja:RDFDataset ; - rdfs:label "Books" ; - ja:defaultGraph - [ rdfs:label "books.ttl" ; - a ja:MemoryModel ; - ja:content [ja:externalContent <file:Data/books.ttl> ] ; - ] ; - . -## --------------------------------------------------------------- -## TDB dataset with only SPARQL query. - -<#service3> rdf:type fuseki:Service ; - fuseki:name "inf" ; # http://host/inf - fuseki:serviceQuery "sparql" ; # SPARQL query service - fuseki:dataset <#dataset> ; - . - -<#dataset> rdf:type ja:RDFDataset ; - ja:defaultGraph <#model_inf_2> ; - . - -# ---- RDFS Inference models -# These must be incorporate in a dataset in order to use them. -# All in one file. - -<#model_inf_1> a ja:InfModel ; - rdfs:label "Inf-1" ; - ja:baseModel - [ a ja:MemoryModel ; - ja:content [ja:externalContent <file:Data/test_data_rdfs.ttl>] ; - ] ; - ja:reasoner - [ ja:reasonerURL <http://jena.hpl.hp.com/2003/RDFSExptRuleReasoner> ] - . - -# Separate ABox and TBox - -<#model_inf_2> a ja:InfModel ; - rdfs:label "Inf-2" ; - ja:baseModel - [ a ja:MemoryModel ; - ja:content [ja:externalContent <file:Data/test_abox.ttl>] ; - ja:content [ja:externalContent <file:Data/test_tbox.ttl>] ; - ] ; - ja:reasoner - [ ja:reasonerURL <http://jena.hpl.hp.com/2003/RDFSExptRuleReasoner> ] - . http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/config-inf-tdb.ttl ---------------------------------------------------------------------- diff --git a/jena-fuseki/config-inf-tdb.ttl b/jena-fuseki/config-inf-tdb.ttl deleted file mode 100644 index 6a4a08c..0000000 --- a/jena-fuseki/config-inf-tdb.ttl +++ /dev/null @@ -1,52 +0,0 @@ -# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 - -@prefix : <#> . -@prefix fuseki: <http://jena.apache.org/fuseki#> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . - -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . -@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . - -[] rdf:type fuseki:Server ; - fuseki:services ( - <#service1> - ) . - -# Custom code. -[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" . - -# TDB -tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset . -tdb:GraphTDB rdfs:subClassOf ja:Model . - -## --------------------------------------------------------------- -## Service with only SPARQL query on an inference model. -## Inference model bbase data in TDB. - -<#service1> rdf:type fuseki:Service ; - fuseki:name "inf" ; # http://host/inf - fuseki:serviceQuery "sparql" ; # SPARQL query service - fuseki:serviceUpdate "update" ; - fuseki:dataset <#dataset> ; - . - -<#dataset> rdf:type ja:RDFDataset ; - ja:defaultGraph <#model_inf> ; - . - -<#model_inf> a ja:InfModel ; - ja:baseModel <#tdbGraph> ; - ja:reasoner [ - ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner> - ] . - -<#tdbDataset> rdf:type tdb:DatasetTDB ; - tdb:location "DB" ; - # If the unionDefaultGraph is used, then the "update" service should be removed. - # The unionDefaultGraph is read only. - # tdb:unionDefaultGraph true ; - . - -<#tdbGraph> rdf:type tdb:GraphTDB ; - tdb:dataset <#tdbDataset> . http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/config-tdb-text.ttl ---------------------------------------------------------------------- diff --git a/jena-fuseki/config-tdb-text.ttl b/jena-fuseki/config-tdb-text.ttl deleted file mode 100644 index 760ea5b..0000000 --- a/jena-fuseki/config-tdb-text.ttl +++ /dev/null @@ -1,77 +0,0 @@ -## Example of a TDB dataset and text index published using Fuseki - -@prefix : <#> . -@prefix fuseki: <http://jena.apache.org/fuseki#> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . -@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . -@prefix text: <http://jena.apache.org/text#> . - -[] rdf:type fuseki:Server ; - # Timeout - server-wide default: milliseconds. - # Format 1: "1000" -- 1 second timeout - # Format 2: "10000,60000" -- 10s timeout to first result, then 60s timeout to for rest of query. - # See java doc for ARQ.queryTimeout - # ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "10000" ] ; - # ja:loadClass "your.code.Class" ; - - fuseki:services ( - <#service_text_tdb> - ) . - -# TDB -[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" . -tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset . -tdb:GraphTDB rdfs:subClassOf ja:Model . - -# Text -[] ja:loadClass "org.apache.jena.query.text.TextQuery" . -text:TextDataset rdfs:subClassOf ja:RDFDataset . -#text:TextIndexSolr rdfs:subClassOf text:TextIndex . -text:TextIndexLucene rdfs:subClassOf text:TextIndex . - -## --------------------------------------------------------------- - -<#service_text_tdb> rdf:type fuseki:Service ; - rdfs:label "TDB/text service" ; - fuseki:name "ds" ; - fuseki:serviceQuery "query" ; - fuseki:serviceQuery "sparql" ; - fuseki:serviceUpdate "update" ; - fuseki:serviceUpload "upload" ; - fuseki:serviceReadGraphStore "get" ; - fuseki:serviceReadWriteGraphStore "data" ; - fuseki:dataset <#text_dataset> ; - . - -<#text_dataset> rdf:type text:TextDataset ; - text:dataset <#dataset> ; - ##text:index <#indexSolr> ; - text:index <#indexLucene> ; - . - -<#dataset> rdf:type tdb:DatasetTDB ; - tdb:location "DB" ; - ##tdb:unionDefaultGraph true ; - . - -<#indexSolr> a text:TextIndexSolr ; - #text:server <http://localhost:8983/solr/COLLECTION> ; - text:server <embedded:SolrARQ> ; - text:entityMap <#entMap> ; - . - -<#indexLucene> a text:TextIndexLucene ; - text:directory <file:Lucene> ; - ##text:directory "mem" ; - text:entityMap <#entMap> ; - . - -<#entMap> a text:EntityMap ; - text:entityField "uri" ; - text:defaultField "text" ; ## Should be defined in the text:map. - text:map ( - # rdfs:label - [ text:field "text" ; text:predicate rdfs:label ] - ) . http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/config-tdb.ttl ---------------------------------------------------------------------- diff --git a/jena-fuseki/config-tdb.ttl b/jena-fuseki/config-tdb.ttl deleted file mode 100644 index 4194189..0000000 --- a/jena-fuseki/config-tdb.ttl +++ /dev/null @@ -1,72 +0,0 @@ -# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 - -## Example of a TDB dataset published using Fuseki: persistent storage. - -@prefix : <#> . -@prefix fuseki: <http://jena.apache.org/fuseki#> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . -@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . - -[] rdf:type fuseki:Server ; - # Timeout - server-wide default: milliseconds. - # Format 1: "1000" -- 1 second timeout - # Format 2: "10000,60000" -- 10s timeout to first result, then 60s timeout to for rest of query. - # See java doc for ARQ.queryTimeout - # ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "10000" ] ; - # ja:loadClass "your.code.Class" ; - - fuseki:services ( - <#service_tdb_read_only> - <#service_tdb_all> - ) . - -# TDB -[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" . -tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset . -tdb:GraphTDB rdfs:subClassOf ja:Model . - -## --------------------------------------------------------------- -## Read-only TDB dataset (only read services enabled). - -<#service_tdb_read_only> rdf:type fuseki:Service ; - rdfs:label "TDB Service (R)" ; - fuseki:name "ds" ; - fuseki:serviceQuery "query" ; - fuseki:serviceQuery "sparql" ; - # Don't allow SPARQL Update. - #fuseki:serviceUpdate "update" ; - # Use the read-only service. - fuseki:serviceReadGraphStore "data" ; - fuseki:serviceReadGraphStore "get" ; - fuseki:dataset <#tdb_dataset_read> ; - . - -<#tdb_dataset_read> rdf:type tdb:DatasetTDB ; - tdb:location "DB1" ; - tdb:unionDefaultGraph true ; - . - -## --------------------------------------------------------------- -## Updatable TDB dataset with all services enabled. - -<#service_tdb_all> rdf:type fuseki:Service ; - rdfs:label "TDB Service (RW)" ; - fuseki:name "data" ; - fuseki:serviceQuery "query" ; - fuseki:serviceQuery "sparql" ; - fuseki:serviceUpdate "update" ; - fuseki:serviceUpload "upload" ; - fuseki:serviceReadWriteGraphStore "data" ; - # A separate read-only graph store endpoint: - fuseki:serviceReadGraphStore "get" ; - fuseki:dataset <#tdb_dataset_readwrite> ; - . - -<#tdb_dataset_readwrite> rdf:type tdb:DatasetTDB ; - tdb:location "DB2" ; -## # Query timeout on this dataset (milliseconds) -## ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "1000" ] ; -## # Default graph for query is the (read-only) union of all named graphs. - . http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/config.ttl ---------------------------------------------------------------------- diff --git a/jena-fuseki/config.ttl b/jena-fuseki/config.ttl deleted file mode 100644 index 5ea8cd0..0000000 --- a/jena-fuseki/config.ttl +++ /dev/null @@ -1,65 +0,0 @@ -# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 - -## Basic Fuseki configuation file. -## -## See also config-tdb.ttl for TDB specific examples. -## See also config-examples.ttl for commented examples. - -@prefix : <#> . -@prefix fuseki: <http://jena.apache.org/fuseki#> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . - -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . -@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . - -[] rdf:type fuseki:Server ; - # Timeout - server-wide default: milliseconds. - # Format 1: "1000" -- 1 second timeout - # Format 2: "10000,60000" -- 10s timeout to first result, then 60s timeout for the rest of query. - # See java doc for ARQ.queryTimeout - # ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "10000" ] ; - - # ja:loadClass "your.code.Class" ; - - fuseki:services ( - <#service1> - <#service2> - ) . - -## --------------------------------------------------------------- -## Updatable in-memory dataset. - -<#service1> rdf:type fuseki:Service ; - # URI of the dataset -- http://host:port/ds - fuseki:name "ds" ; - fuseki:serviceQuery "sparql" ; - fuseki:serviceQuery "query" ; - fuseki:serviceUpdate "update" ; - fuseki:serviceUpload "upload" ; - fuseki:serviceReadWriteGraphStore "data" ; - fuseki:serviceReadGraphStore "get" ; - fuseki:dataset <#emptyDataset> ; - . - -## In-memory, initially empty. -<#emptyDataset> rdf:type ja:RDFDataset . - -## --------------------------------------------------------------- -## Read-only access to a small books database. - -<#service2> rdf:type fuseki:Service ; - fuseki:name "books" ; - fuseki:serviceQuery "query" ; - fuseki:serviceReadGraphStore "get" ; - fuseki:dataset <#books> ; - . - -<#books> rdf:type ja:RDFDataset ; - rdfs:label "Books" ; - ja:defaultGraph - [ rdfs:label "books.ttl" ; - a ja:MemoryModel ; - ja:content [ja:externalContent <file:Data/books.ttl> ] ; - ] ; - . http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/dist/ABOUT ---------------------------------------------------------------------- diff --git a/jena-fuseki/dist/ABOUT b/jena-fuseki/dist/ABOUT deleted file mode 100644 index cee2ca2..0000000 --- a/jena-fuseki/dist/ABOUT +++ /dev/null @@ -1 +0,0 @@ -This directory holds the material needed for inclusion in the Fuseki distribution. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/dist/LICENSE-dist ---------------------------------------------------------------------- diff --git a/jena-fuseki/dist/LICENSE-dist b/jena-fuseki/dist/LICENSE-dist deleted file mode 100644 index 45a6ca4..0000000 --- a/jena-fuseki/dist/LICENSE-dist +++ /dev/null @@ -1,548 +0,0 @@ - - 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: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) 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 - - (d) 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. - -- - - - - - - - - - - - - - - - - - - - - - - - - (c) Copyright 2003, Plugged In Software - - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -- - - - - - - - - - - - - - - - - - - - - - - - -http://www.slf4j.org/license.html - - Copyright (c) 2004-2011 QOS.ch - All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -- - - - - - - - - - - - - - - - - - - - - - - - -============================================================== - Jetty Web Container - Copyright 1995-2012 Mort Bay Consulting Pty Ltd. -============================================================== - -The Jetty Web Container is Copyright Mort Bay Consulting Pty Ltd -unless otherwise noted. - -Jetty is dual licensed under both - - * The Apache 2.0 License - http://www.apache.org/licenses/LICENSE-2.0.html - - and - - * The Eclipse Public 1.0 License - http://www.eclipse.org/legal/epl-v10.html - -Jetty may be distributed under either license. - -The javax.servlet package used was sourced from the Apache -Software Foundation and is distributed under the apache 2.0 -license. - -The UnixCrypt.java code implements the one way cryptography used by -Unix systems for simple password protection. Copyright 1996 Aki Yoshida, -modified April 2001 by Iris Van den Broeke, Daniel Deville. -Permission to use, copy, modify and distribute UnixCrypt -for non-commercial or commercial purposes and without fee is -granted provided that the copyright notice appears in all copies. - -- - - - - - - - - - - - - - - - - - - - - - - - -From Apache HttpComponents Client - -This project contains annotations derived from JCIP-ANNOTATIONS -Copyright (c) 2005 Brian Goetz and Tim Peierls. -See http://www.jcip.net and the Creative Commons Attribution License -(http://creativecommons.org/licenses/by/2.5) - -- - - - - - - - - - - - - - - - - - - - - - - - -From Apache Lucene - -Some code in core/src/java/org/apache/lucene/util/UnicodeUtil.java was -derived from unicode conversion examples available at -http://www.unicode.org/Public/PROGRAMS/CVTUTF. Here is the copyright -from those sources: - -/* - * Copyright 2001-2004 Unicode, Inc. - * - * Disclaimer - * - * This source code is provided as is by Unicode, Inc. No claims are - * made as to fitness for any particular purpose. No warranties of any - * kind are expressed or implied. The recipient agrees to determine - * applicability of information provided. If this file has been - * purchased on magnetic or optical media from Unicode, Inc., the - * sole remedy for any claim will be exchange of defective media - * within 90 days of receipt. - * - * Limitations on Rights to Redistribute This Code - * - * Unicode, Inc. hereby grants the right to freely use the information - * supplied in this file in the creation of products supporting the - * Unicode Standard, and to make copies of this file in any form - * for internal or external distribution as long as this notice - * remains attached. - */ - - -Some code in core/src/java/org/apache/lucene/util/ArrayUtil.java was -derived from Python 2.4.2 sources available at -http://www.python.org. Full license is here: - - http://www.python.org/download/releases/2.4.2/license/ - -Some code in core/src/java/org/apache/lucene/util/UnicodeUtil.java was -derived from Python 3.1.2 sources available at -http://www.python.org. Full license is here: - - http://www.python.org/download/releases/3.1.2/license/ - -Some code in core/src/java/org/apache/lucene/util/automaton was -derived from Brics automaton sources available at -www.brics.dk/automaton/. Here is the copyright from those sources: - -/* - * Copyright (c) 2001-2009 Anders Moeller - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -The levenshtein automata tables in core/src/java/org/apache/lucene/util/automaton -were automatically generated with the moman/finenight FSA package. -Here is the copyright for those sources: - -# Copyright (c) 2010, Jean-Philippe Barrette-LaPierre, <[email protected]> -# -# Permission is hereby granted, free of charge, to any person -# obtaining a copy of this software and associated documentation -# files (the "Software"), to deal in the Software without -# restriction, including without limitation the rights to use, -# copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following -# conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -# OTHER DEALINGS IN THE SOFTWARE. - -Some code in core/src/java/org/apache/lucene/util/UnicodeUtil.java was -derived from ICU (http://www.icu-project.org) -The full license is available here: - http://source.icu-project.org/repos/icu/icu/trunk/license.html - -/* - * Copyright (C) 1999-2010, International Business Machines - * Corporation and others. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, and/or sell copies of the - * Software, and to permit persons to whom the Software is furnished to do so, - * provided that the above copyright notice(s) and this permission notice appear - * in all copies of the Software and that both the above copyright notice(s) and - * this permission notice appear in supporting documentation. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. - * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE - * LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR - * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT - * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * Except as contained in this notice, the name of a copyright holder shall not - * be used in advertising or otherwise to promote the sale, use or other - * dealings in this Software without prior written authorization of the - * copyright holder. - */ - -The following license applies to the Snowball stemmers: - -Copyright (c) 2001, Dr Martin Porter -Copyright (c) 2002, Richard Boulton -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the copyright holders nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -The following license applies to the KStemmer: - -Copyright © 2003, -Center for Intelligent Information Retrieval, -University of Massachusetts, Amherst. -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -and/or other materials provided with the distribution. - -3. The names "Center for Intelligent Information Retrieval" and -"University of Massachusetts" must not be used to endorse or promote products -derived from this software without prior written permission. To obtain -permission, contact [email protected]. - -THIS SOFTWARE IS PROVIDED BY UNIVERSITY OF MASSACHUSETTS AND OTHER CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. - -The following license applies to the Morfologik project: - -Copyright (c) 2006 Dawid Weiss -Copyright (c) 2007-2011 Dawid Weiss, Marcin MiÅkowski -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name of Morfologik nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ---- - -The dictionary comes from Morfologik project. Morfologik uses data from -Polish ispell/myspell dictionary hosted at http://www.sjp.pl/slownik/en/ and -is licenced on the terms of (inter alia) LGPL and Creative Commons -ShareAlike. The part-of-speech tags were added in Morfologik project and -are not found in the data from sjp.pl. The tagset is similar to IPI PAN -tagset. - ---- - -The following license applies to the Morfeusz project, -used by org.apache.lucene.analysis.morfologik. - -BSD-licensed dictionary of Polish (SGJP) -http://sgjp.pl/morfeusz/ - -Copyright © 2011 Zygmunt Saloni, WÅodzimierz GruszczyÅski, - Marcin WoliÅski, Robert WoÅosz - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the - distribution. - -THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDERS âAS ISâ AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/dist/NOTICE-dist ---------------------------------------------------------------------- diff --git a/jena-fuseki/dist/NOTICE-dist b/jena-fuseki/dist/NOTICE-dist deleted file mode 100644 index be02354..0000000 --- a/jena-fuseki/dist/NOTICE-dist +++ /dev/null @@ -1,216 +0,0 @@ -Apache Jena - module Fuseki -Copyright 2011, 2012, 2013, 2014 The Apache Software Foundation - -This product includes software developed at -The Apache Software Foundation (http://www.apache.org/). - -Portions of this software were originally based on the following: - - Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP - - Copyright 2010, 2011 Epimorphics Ltd. - - Copyright 2010, 2011 Talis Systems Ltd. -These have been licensed to the Apache Software Foundation under a software grant. - -- - - - - - - - - - - - - - - - - - - - - - - - -slf4j: - Copyright (c) 2004-2011 QOS.ch - All rights reserved. - -- - - - - - - - - - - - - - - - - - - - - - - - -(c) Copyright 2003, Plugged In Software -This product includes software developed by -PluggedIn Software under a BSD license. - -- - - - - - - - - - - - - - - - - - - - - - - - - Jetty Web Container - Copyright 1995-2012 Mort Bay Consulting Pty Ltd. - -under the Apache 2.0 License. - -The Jetty Web Container includes: - -UnixCrypt.java -Copyright 1996 Aki Yoshida, -modified April 2001 by Iris Van den Broeke, Daniel Deville. - -- - - - - - - - - - - - - - - - - - - - - - - - -From Apache HttpComponents Client: - -This project contains annotations derived from JCIP-ANNOTATIONS -Copyright (c) 2005 Brian Goetz and Tim Peierls. See http://www.jcip.net - -- - - - - - - - - - - - - - - - - - - - - - - - - Apache Xerces Java - Copyright 1999-2013 The Apache Software Foundation - - This product includes software developed at - The Apache Software Foundation (http://www.apache.org/). - - Portions of this software were originally based on the following: - - software copyright (c) 1999, IBM Corporation., http://www.ibm.com. - - software copyright (c) 1999, Sun Microsystems., http://www.sun.com. - - voluntary contributions made by Paul Eng on behalf of the - Apache Software Foundation that were originally developed at iClick, Inc., - software copyright (c) 1999. - -- - - - - - - - - - - - - - - - - - - - - - - - -From Apache Lucene: - -ICU4J, (under analysis/icu) is licensed under an MIT styles license -and Copyright (c) 1995-2008 International Business Machines Corporation and others - -Some data files (under analysis/icu/src/data) are derived from Unicode data such -as the Unicode Character Database. See http://unicode.org/copyright.html for more -details. - -Brics Automaton (under core/src/java/org/apache/lucene/util/automaton) is -BSD-licensed, created by Anders Møller. See http://www.brics.dk/automaton/ - -The levenshtein automata tables (under core/src/java/org/apache/lucene/util/automaton) were -automatically generated with the moman/finenight FSA library, created by -Jean-Philippe Barrette-LaPierre. This library is available under an MIT license, -see http://sites.google.com/site/rrettesite/moman and -http://bitbucket.org/jpbarrette/moman/overview/ - -This product includes code (JaspellTernarySearchTrie) from Java Spelling -Checking Package (jaspell): http://jaspell.sourceforge.net/ -License: The BSD License (http://www.opensource.org/licenses/bsd-license.php) - -The snowball stemmers in - analysis/common/src/java/net/sf/snowball -were developed by Martin Porter and Richard Boulton. -The snowball stopword lists in - analysis/common/src/resources/org/apache/lucene/analysis/snowball -were developed by Martin Porter and Richard Boulton. -The full snowball package is available from - http://snowball.tartarus.org/ - -The KStem stemmer in - analysis/common/src/org/apache/lucene/analysis/en -was developed by Bob Krovetz and Sergio Guzman-Lara (CIIR-UMass Amherst) -under the BSD-license. - -The Arabic,Persian,Romanian,Bulgarian, and Hindi analyzers (common) come with a default -stopword list that is BSD-licensed created by Jacques Savoy. -See http://members.unine.ch/jacques.savoy/clef/index.html. - -The German,Spanish,Finnish,French,Hungarian,Italian,Portuguese,Russian and Swedish light stemmers -(common) are based on BSD-licensed reference implementations created by Jacques Savoy and -Ljiljana Dolamic. - -The Stempel analyzer (stempel) includes BSD-licensed software developed -by the Egothor project http://egothor.sf.net/, created by Leo Galambos, Martin Kvapil, -and Edmond Nolan. - -The Polish analyzer (stempel) comes with a default -stopword list that is BSD-licensed created by the Carrot2 project. The file resides -in stempel/src/resources/org/apache/lucene/analysis/pl/stopwords.txt. -See http://project.carrot2.org/license.html. - -The SmartChineseAnalyzer source code (smartcn) was -provided by Xiaoping Gao and copyright 2009 by www.imdict.net. - -WordBreakTestUnicode_*.java (under modules/analysis/common/src/test/) -is derived from Unicode data such as the Unicode Character Database. -See http://unicode.org/copyright.html for more details. - -The Morfologik analyzer (morfologik) includes BSD-licensed software -developed by Dawid Weiss and Marcin MiÅkowski (http://morfologik.blogspot.com/). - -Morfologik uses data from Polish ispell/myspell dictionary -(http://www.sjp.pl/slownik/en/) licenced on the terms of (inter alia) -LGPL and Creative Commons ShareAlike. - -Morfologic includes data from BSD-licensed dictionary of Polish (SGJP) -(http://sgjp.pl/morfeusz/) - -Servlet-api.jar and javax.servlet-*.jar are under the CDDL license, the original -source code for this can be found at http://www.eclipse.org/jetty/downloads.php - -=========================================================================== -Kuromoji Japanese Morphological Analyzer - Apache Lucene Integration -=========================================================================== - -This software includes a binary and/or source version of data from - - mecab-ipadic-2.7.0-20070801 - -which can be obtained from - - http://atilika.com/releases/mecab-ipadic/mecab-ipadic-2.7.0-20070801.tar.gz - -or - - http://jaist.dl.sourceforge.net/project/mecab/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz - -=========================================================================== -mecab-ipadic-2.7.0-20070801 Notice -=========================================================================== - -Nara Institute of Science and Technology (NAIST), -the copyright holders, disclaims all warranties with regard to this -software, including all implied warranties of merchantability and -fitness, in no event shall NAIST be liable for -any special, indirect or consequential damages or any damages -whatsoever resulting from loss of use, data or profits, whether in an -action of contract, negligence or other tortuous action, arising out -of or in connection with the use or performance of this software. - -A large portion of the dictionary entries -originate from ICOT Free Software. The following conditions for ICOT -Free Software applies to the current dictionary as well. - -Each User may also freely distribute the Program, whether in its -original form or modified, to any third party or parties, PROVIDED -that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear -on, or be attached to, the Program, which is distributed substantially -in the same form as set out herein and that such intended -distribution, if actually made, will neither violate or otherwise -contravene any of the laws and regulations of the countries having -jurisdiction over the User or the intended distribution itself. - -NO WARRANTY - -The program was produced on an experimental basis in the course of the -research and development conducted during the project and is provided -to users as so produced on an experimental basis. Accordingly, the -program is provided without any warranty whatsoever, whether express, -implied, statutory or otherwise. The term "warranty" used herein -includes, but is not limited to, any warranty of the quality, -performance, merchantability and fitness for a particular purpose of -the program and the nonexistence of any infringement or violation of -any right of any third party. - -Each user of the program will agree and understand, and be deemed to -have agreed and understood, that there is no warranty whatsoever for -the program and, accordingly, the entire risk arising from or -otherwise connected with the program is assumed by the user. - -Therefore, neither ICOT, the copyright holder, or any other -organization that participated in or was otherwise related to the -development of the program and their respective officials, directors, -officers and other employees shall be held liable for any and all -damages, including, without limitation, general, special, incidental -and consequential damages, arising out of or otherwise in connection -with the use or inability to use the program or any product, material -or result produced or otherwise obtained by using the program, -regardless of whether they have been advised of, or otherwise had -knowledge of, the possibility of such damages at any time during the -project or thereafter. Each user will be deemed to have agreed to the -foregoing by his or her commencement of use of the program. The term -"use" as used herein includes, but is not limited to, the use, -modification, copying and distribution of the program and the -production of secondary products from the program. - -In the case where the program, whether in its original form or -modified, was distributed or delivered to or received by a user from -any person, organization or entity other than ICOT, unless it makes or -grants independently of ICOT any specific warranty to the user in -writing, such person, organization or entity, will also be exempted -from and not be held liable to the user for any such damages as noted -above as far as the program is concerned. http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/fuseki ---------------------------------------------------------------------- diff --git a/jena-fuseki/fuseki b/jena-fuseki/fuseki deleted file mode 100755 index 0dae10d..0000000 --- a/jena-fuseki/fuseki +++ /dev/null @@ -1,390 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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. -# -# ========= -# -# Startup script for Fuseki under *nix systems (works with cygwin too) -# -# Configuration -# ------------- -# Default values are loaded from /etc/default/fuseki, if it exists. -# -# JAVA -# Command to invoke Java. If not set, java (from the PATH) will be used. -# -# JAVA_OPTIONS -# Extra options to pass to the JVM. -# -# FUSEKI_HOME -# Where Fuseki is installed. If not set, the script will try -# to guess it based on the script invokation path. -# -# FUSEKI_RUN -# Where the fuseki.pid file should be stored. It defaults -# first available of /var/run, /usr/var/run, and /tmp if not set. -# -# FUSEKI_PID -# The FUSEKI PID file, defaults to $FUSEKI_RUN/fuseki.pid -# -# FUSEKI_ARGS -# The arguments to pass to the Fuseki server on the command line. Defaults to: -# --update --loc=$FUSKEI_DATA_DIR /ds # if FUSEKI_CONF is not set -# --config=$FUSEKI_CONF # if FUSEKI_CONF is set -# -# FUSEKI_CONF -# The Fuseki configuration file, usually in RDF Turtle notation. -# -# FUSEKI_USER -# If set, the server will be run as this user -# -# FUSEKI_DATA_DIR -# The location of the data directory Fuseki will use (i.e. the value of --loc). -# Defaults to $FUSEKI_HOME/DB -# -# FUSEKI_LOGS -# Directory where logs will be generated. Defaults to $FUSEKI_HOME/log -# -# FUSEKI_LOGS_STDERROUT -# Log file with stderr and stdout log output from Fuseki. Defaults to -# $FUSEKI_LOGS/stderrout.log - -### BEGIN INIT INFO -# Provides: fuseki -# Required-Start: $remote_fs $network -# Required-Stop: $remote_fs $network -# Default-Start: 3 4 5 -# Default-Stop: 0 1 2 6 -# Short-Description: Start Jena Fuseki at boot time -# Description: Jena Fuseki is a service that provides a SPARQL API over HTTP to one more RDF triple stores -### END INIT INFO - -usage() -{ - echo "Usage: ${0##*/} {start|stop|restart|status}" - exit 1 -} - -[ $# -gt 0 ] || usage - -# Utility functions: -findDirectory() -{ - local L OP=$1 - shift - for L in "$@"; do - [ "$OP" "$L" ] || continue - printf %s "$L" - break - done -} - -running() -{ - local PID=$(cat "$1" 2>/dev/null) || return 1 - kill -0 "$PID" 2>/dev/null -} - -# Are we running in cygwin? -cygwin=false -case "`uname`" in - CYGWIN*) cygwin=true;; -esac - - -NAME=fuseki -[ -f "/etc/default/$NAME" ] && . /etc/default/$NAME - -# Set FUSKEI_HOME to the script invocation directory if it is not specified -if [ -z "$FUSEKI_HOME" ] -then - SCRIPT="$0" - # Catch common issue: script has been symlinked - if [ -L "$SCRIPT" ] - then - SCRIPT="$(readlink "$0")" - # If link is relative - case "$SCRIPT" in - /*) ;; # fine - *) SCRIPT=$( dirname "$0" )/$SCRIPT;; # fix - esac - fi - - # Work out root from script location - FUSEKI_HOME="$( cd "$( dirname "$SCRIPT" )" && pwd )" - -fi - -# Deal with more Cygwin path issues -if [ "$cygwin" == "true" ] -then - FUSEKI_HOME=`cygpath -w "$FUSEKI_HOME"` - fi - -#echo "DEBUG: FUSEKI_HOME=$FUSEKI_HOME" - -if [ ! -e "$FUSEKI_HOME" ] -then - echo "$FUSEKI_HOME does not exist" 1>&2 - exit 1 -fi - - -# Find a location for the pid file -if [ -z "$FUSEKI_RUN" ] -then - FUSEKI_RUN=$(findDirectory -w /var/run /usr/var/run $FUSEKI_HOME /tmp) -fi - -# Get PID file name -if [ -z "$FUSEKI_PID" ] -then - FUSEKI_PID="$FUSEKI_RUN/fuseki.pid" -fi - -# Log directory -if [ -z "$FUSEKI_LOGS" ] -then - FUSEKI_LOGS="$FUSEKI_HOME/log" -fi - -# Std Err and Out log -if [ -z "$FUSEKI_LOGS_STDERROUT" ] -then - FUSEKI_LOGS_STDERROUT="$FUSEKI_LOGS/stderrout.log" -fi - -# Data directory -if [ -z "$FUSEKI_DATA_DIR" ] -then - FUSEKI_DATA_DIR="$FUSEKI_HOME/DB" -fi - -# Set up JAVA if not set -if [ -z "$JAVA" ] -then - JAVA=$(which java) -fi -if [ -z "$JAVA" ] -then - echo "Cannot find a Java JDK. Please set either set JAVA or put java (>=1.6) in your PATH." 2>&2 - exit 1 -fi - -# The location of the start up JAR -FUSEKI_START=$FUSEKI_HOME/fuseki-server.jar - -# Deal with Cygwin path issues -if [ "$cygwin" == "true" ] -then - DATA_DIR=`cygpath -w "$FUSEKI_DATA_DIR"` - FUSEKI_START=`cygpath -w "$FUSEKI_START"` -else - DATA_DIR="$FUSEKI_DATA_DIR" -fi - -####################################### -# -# TODO - Read these items from a Config file! -# - -# Some JVM settings -if [ -z "$JAVA_OPTIONS" ] -then - JAVA_OPTIONS="-Xmx1200M" -fi - - -# Default Fuseki Arguments -if [ -z "$FUSEKI_ARGS" ] -then - if [ -z "$FUSEKI_CONF" ] - then - FUSEKI_ARGS="--update --loc=$DATA_DIR /ds" - else - FUSEKI_ARGS="--config=$FUSEKI_CONF" - fi -fi - -# Run command - -RUN_ARGS=(${JAVA_OPTIONS[@]} -jar "$FUSEKI_START" $FUSEKI_ARGS) -RUN_CMD=("$JAVA" ${RUN_ARGS[@]}) - - -####################################### - -##################################################### -# Comment these out after you're happy with what -# the script is doing. -##################################################### -if (( DEBUG )) -then - echo "FUSEKI_HOME = $FUSEKI_HOME" - echo "FUSEKI_CONF = $FUSEKI_CONF" - echo "FUSEKI_RUN = $FUSEKI_RUN" - echo "FUSEKI_PID = $FUSEKI_PID" - echo "FUSEKI_ARGS = $FUSEKI_ARGS" - echo "FUSEKI_START = $FUSEKI_START" - echo "CONFIGS = ${CONFIGS[*]}" - echo "JAVA = $JAVA" - echo "JAVA_OPTIONS = ${JAVA_OPTIONS[*]}" - echo "RUN_ARGS = ${RUN_ARGS[@]}" - echo "RUN_CMD = ${RUN_CMD[@]}" -fi - -NO_START=0 - -# Life cycle functions -start() { - - if (( NO_START )); then - echo "Not starting Fuseki - NO_START=1"; - exit - fi - - # Make sure the data and log directories exist - mkdir -p "$FUSEKI_DATA_DIR" - mkdir -p "$FUSEKI_LOGS" - - echo -n "Starting Fuseki: " - if type start-stop-daemon > /dev/null 2>&1 - then - unset CH_USER - if [ -n "$FUSEKI_USER" ] - then - CH_USER="--chuid $FUSEKI_USER" - fi - if start-stop-daemon --start $CH_USER --chdir "$FUSEKI_HOME" --background --make-pidfile --pidfile "$FUSEKI_PID" --startas "$JAVA" -- "${RUN_ARGS[@]}" - then - sleep 1 - if running "$FUSEKI_PID" - then - print_started - else - print_failed - fi - fi - else - if running $FUSEKI_PID - then - echo "Already Running!" - exit 1 - else - # dead pid file - remove - rm -f "$FUSEKI_PID" - fi - if [ "$FUSEKI_USER" ] - then - touch "$FUSEKI_PID" - chown "$FUSEKI_USER" "$FUSEKI_PID" - su - "$FUSEKI_USER" -c " - echo 'Redirecting Fuseki stderr/stdout to $FUSEKI_LOGS_STDERROUT' - exec ${RUN_CMD[*]} & - disown \$! - echo \$! > '$FUSEKI_PID'" - else - echo "Redirecting Fuseki stderr/stdout to $FUSEKI_LOGS_STDERROUT" - exec "${RUN_CMD[@]}" &> "$FUSEKI_LOGS_STDERROUT" & - disown $! - echo $! > "$FUSEKI_PID" - fi - - print_started - fi -} - -print_started() { - echo "STARTED Fuseki `date`" - echo "PID=$(cat "$FUSEKI_PID" 2>/dev/null)" -} - -print_failed() { - echo "FAILED to start Fuseki `date`" -} - -delete_fuseki_pid_file() { - rm -f "$FUSEKI_PID" -} - -stop() { - echo -n "Stopping Fuseki: " - - if ! running "$FUSEKI_PID" - then - echo "Fuseki is not running" - exit 1 - fi - - ############################################################### - # !!!! This code needs to be improved, too many repeats !!!! # - ############################################################### - if type start-stop-daemon > /dev/null 2>&1; then - start-stop-daemon --stop --pidfile "$FUSEKI_PID" --chdir "$FUSEKI_HOME" --startas "$JAVA" --signal HUP - - ## Die after a 30 second timeout - TIMEOUT=30 - while running "$FUSEKI_PID"; do - if (( TIMEOUT-- == 0 )); then - start-stop-daemon --stop --pidfile "$FUSEKI_PID" --chdir "$FUSEKI_HOME" --startas "$JAVA" --signal KILL - fi - sleep 1 - done - delete_fuseki_pid_file - echo OK - else - PID=$(cat "$FUSEKI_PID" 2>/dev/null) - kill "$PID" 2>/dev/null - - TIMEOUT=30 - while running $FUSEKI_PID; do - if (( TIMEOUT-- == 0 )); then - kill -KILL "$PID" 2>/dev/null - fi - sleep 1 - done - delete_fuseki_pid_file - echo "OK" - fi -} - -case $1 in - start) - start - ;; - stop) - stop - ;; - restart) - stop - start - ;; - status) - if running $FUSEKI_PID - then - echo -n "Fuseki is running with pid: " - echo `cat "$FUSEKI_PID"` - else - echo "Fuseki is not running" - fi - ;; - *) - usage - ;; -esac - -exit 0 http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/fuseki-server ---------------------------------------------------------------------- diff --git a/jena-fuseki/fuseki-server b/jena-fuseki/fuseki-server deleted file mode 100755 index d62a079..0000000 --- a/jena-fuseki/fuseki-server +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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. - -export FUSEKI_HOME="${FUSEKI_HOME:-$PWD}" - -if [ ! -e "$FUSEKI_HOME" ] -then - echo "$FUSEKI_HOME does not exist" 1>&2 - exit 1 - fi - -JAR1="$FUSEKI_HOME/fuseki-server.jar" -JAR2="$FUSEKI_HOME/jena-fuseki-*-server.jar" -JAR="" - -for J in "$JAR1" "$JAR2" -do - # Expand - J="$(echo $J)" - if [ -e "$J" ] - then - JAR="$J" - break - fi -done - -if [ "$JAR" = "" ] -then - echo "Can't find jarfile to run" - exit 1 -fi - -# Deal with Cygwin path issues -cygwin=false -case "`uname`" in - CYGWIN*) cygwin=true;; -esac -if [ "$cygwin" = "true" ] -then - JAR=`cygpath -w "$JAR"` - FUSEKI_HOME=`cygpath -w "$FUSEKI_HOME"` -fi - -JVM_ARGS=${JVM_ARGS:--Xmx1200M} - -exec java $JVM_ARGS -jar "$JAR" "$@" http://git-wip-us.apache.org/repos/asf/jena/blob/2fb788d3/jena-fuseki/fuseki-server.bat ---------------------------------------------------------------------- diff --git a/jena-fuseki/fuseki-server.bat b/jena-fuseki/fuseki-server.bat deleted file mode 100644 index 6bfd370..0000000 --- a/jena-fuseki/fuseki-server.bat +++ /dev/null @@ -1,3 +0,0 @@ -@echo off -@REM modify this to name the server jar -java -Xmx1200M -jar fuseki-server.jar %*
