Skip to content

Commit

Permalink
Factored out ARQ 2.6.8 as independent bundle (fixing strange classpat…
Browse files Browse the repository at this point in the history
…h problems in the RDF plugin)
  • Loading branch information
egonw committed Dec 11, 2009
1 parent 25082e3 commit 9724046
Show file tree
Hide file tree
Showing 952 changed files with 143,005 additions and 3 deletions.
6 changes: 6 additions & 0 deletions externals/com.hp.hpl.jena.arq/.classpath
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
</classpath>
28 changes: 28 additions & 0 deletions externals/com.hp.hpl.jena.arq/.project
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.hp.hpl.jena.arq</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
73 changes: 73 additions & 0 deletions externals/com.hp.hpl.jena.arq/META-INF/MANIFEST.MF
@@ -0,0 +1,73 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jena
Bundle-SymbolicName: com.hp.hpl.jena.arq;singleton:=true
Bundle-Version: 2.8.2
Require-Bundle: org.eclipse.core.runtime,
slf4j.api;bundle-version="1.5.0",
jcl104.over.slf4j;bundle-version="1.5.0",
org.apache.xerces;bundle-version="2.9.0",
com.hp.hpl.jena;bundle-version="2.6.2"
Bundle-ClassPath: .,
jars/arq.jar
Bundle-Activator: net.bioclipse.jena.arq.Activator
Bundle-ActivationPolicy: lazy
Bundle-Vendor: The Bioclipse Team
Import-Package: org.apache.log4j
Export-Package: arq,
arq.cmd,
arq.cmdline,
com.hp.hpl.jena.query,
com.hp.hpl.jena.query.larq,
com.hp.hpl.jena.sparql,
com.hp.hpl.jena.sparql.algebra,
com.hp.hpl.jena.sparql.algebra.op,
com.hp.hpl.jena.sparql.algebra.opt,
com.hp.hpl.jena.sparql.algebra.table,
com.hp.hpl.jena.sparql.core,
com.hp.hpl.jena.sparql.core.assembler,
com.hp.hpl.jena.sparql.core.describe,
com.hp.hpl.jena.sparql.engine,
com.hp.hpl.jena.sparql.engine.binding,
com.hp.hpl.jena.sparql.engine.http,
com.hp.hpl.jena.sparql.engine.iterator,
com.hp.hpl.jena.sparql.engine.main,
com.hp.hpl.jena.sparql.engine.main.iterator,
com.hp.hpl.jena.sparql.engine.optimizer,
com.hp.hpl.jena.sparql.engine.optimizer.reorder,
com.hp.hpl.jena.sparql.engine.ref,
com.hp.hpl.jena.sparql.expr,
com.hp.hpl.jena.sparql.expr.aggregate,
com.hp.hpl.jena.sparql.expr.nodevalue,
com.hp.hpl.jena.sparql.function,
com.hp.hpl.jena.sparql.function.library,
com.hp.hpl.jena.sparql.lang,
com.hp.hpl.jena.sparql.lang.arq,
com.hp.hpl.jena.sparql.lang.rdql,
com.hp.hpl.jena.sparql.lang.sparql_10,
com.hp.hpl.jena.sparql.lang.sparql_11,
com.hp.hpl.jena.sparql.lib,
com.hp.hpl.jena.sparql.lib.cache,
com.hp.hpl.jena.sparql.lib.iterator,
com.hp.hpl.jena.sparql.lib.org.json,
com.hp.hpl.jena.sparql.mgt,
com.hp.hpl.jena.sparql.modify,
com.hp.hpl.jena.sparql.modify.op,
com.hp.hpl.jena.sparql.path,
com.hp.hpl.jena.sparql.pfunction,
com.hp.hpl.jena.sparql.pfunction.library,
com.hp.hpl.jena.sparql.procedure,
com.hp.hpl.jena.sparql.procedure.library,
com.hp.hpl.jena.sparql.resultset,
com.hp.hpl.jena.sparql.serializer,
com.hp.hpl.jena.sparql.sse,
com.hp.hpl.jena.sparql.sse.builders,
com.hp.hpl.jena.sparql.sse.lang,
com.hp.hpl.jena.sparql.sse.lang.parser,
com.hp.hpl.jena.sparql.sse.writers,
com.hp.hpl.jena.sparql.syntax,
com.hp.hpl.jena.sparql.util,
com.hp.hpl.jena.sparql.util.graph,
com.hp.hpl.jena.sparql.vocabulary,
com.hp.hpl.jena.update,
net.bioclipse.jena.arq
5 changes: 5 additions & 0 deletions externals/com.hp.hpl.jena.arq/build.properties
@@ -0,0 +1,5 @@
bin.includes = plugin.xml,\
META-INF/,\
.
bin.. = bin/
source.. = src/
5 changes: 5 additions & 0 deletions externals/com.hp.hpl.jena.arq/plugin.xml
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>

</plugin>
4 changes: 4 additions & 0 deletions externals/com.hp.hpl.jena.arq/src/META-INF/MANIFEST.MF
@@ -0,0 +1,4 @@
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: 14.1-b02 (Sun Microsystems Inc.)

53 changes: 53 additions & 0 deletions externals/com.hp.hpl.jena.arq/src/arq/arq.java
@@ -0,0 +1,53 @@
/*
* (c) Copyright 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* [See end of file]
*/


package arq;

import java.util.* ;

/** A program to execute queries from the command line in ARQ mode.
*
* @author Andy Seaborne
*/

public class arq
{
public static void main(String... argv)
{
List<String> a = new ArrayList<String>() ;
for ( int i = 0 ; i < argv.length ; i++ ) a.add(argv[i]) ;
a.add(0, "--syntax=arq") ;
argv = a.toArray(argv) ;
query.main(argv) ;
}
}

/*
* (c) Copyright 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* 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.
*/
46 changes: 46 additions & 0 deletions externals/com.hp.hpl.jena.arq/src/arq/cmd/CmdException.java
@@ -0,0 +1,46 @@
/*
* (c) Copyright 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/

package arq.cmd;

/**
* Indicate that something went wrong - while executing the command or processing the request.
* @author Andy Seaborne
*/

public class CmdException extends RuntimeException
{
public CmdException() { super() ; }
public CmdException(String msg) { super(msg) ; }
public CmdException(String msg, Throwable cause) { super(msg, cause) ; }
}

/*
* (c) Copyright 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* 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.
*/
52 changes: 52 additions & 0 deletions externals/com.hp.hpl.jena.arq/src/arq/cmd/CmdUtils.java
@@ -0,0 +1,52 @@
/*
* (c) Copyright 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/

package arq.cmd;


/** Odds and ends
*
* @author Andy Seaborne
*/

public class CmdUtils
{
public static void setN3Params()
{
// Tune N3 output for result set output.
System.setProperty("usePropertySymbols", "false") ;
System.setProperty("objectLists" , "false") ;
System.setProperty("minGap", "2") ;
System.setProperty("propertyColumn", "14") ;
}
}

/*
* (c) Copyright 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* 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.
*/
@@ -0,0 +1,47 @@
/*
* (c) Copyright 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/

package arq.cmd;

/** Exception used to indicate that the command should end now.
* Use instead of System.exit so that a wrapper can catch (else a command server
* wil exit wrongly).
* @author Andy Seaborne
*/

public class TerminationException extends CmdException
{
public int returnCode ;
public TerminationException(int rc) { super() ; this.returnCode = rc ; }
public int getCode() { return returnCode ; }
}

/*
* (c) Copyright 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* 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.
*/

0 comments on commit 9724046

Please sign in to comment.