debian/0000755000000000000000000000000012174603136007171 5ustar debian/patches/0000755000000000000000000000000012174577101010622 5ustar debian/patches/README0000644000000000000000000000021111122736725011475 0ustar 0xxx: Grabbed from upstream development. 1xxx: Possibly relevant for upstream adoption. 2xxx: Only relevant for official Debian release. debian/patches/1002_adjust_math_rounding_in_testsuite.patch0000644000000000000000000000223512174577101021316 0ustar Description: Adjust rounding in math test Recent Python apparently handle floating point operations more correct. Author: Jonas Smedegaard Last-Update: 2013-07-27 --- a/test/ref/math1.n3 +++ b/test/ref/math1.n3 @@ -27,7 +27,7 @@ "1.0e7 + 1729 = 10001729.0" a :RESULT . - "1.0e7 + 3.1415926 = 10000003.141592599" a :RESULT . + "1.0e7 + 3.1415926 = 10000003.1415926" a :RESULT . "10000000.0 + 0 = 10000000.0" a :RESULT . @@ -37,7 +37,7 @@ "10000000.0 + 1729 = 10001729.0" a :RESULT . - "10000000.0 + 3.1415926 = 10000003.141592599" a :RESULT . + "10000000.0 + 3.1415926 = 10000003.1415926" a :RESULT . "1729" a :testValue; :worksWith 3.1415926, @@ -61,9 +61,9 @@ "3.1415926 + 0 = 3.1415926" a :RESULT . - "3.1415926 + 1.0e7 = 10000003.141592599" a :RESULT . + "3.1415926 + 1.0e7 = 10000003.1415926" a :RESULT . - "3.1415926 + 10000000.0 = 10000003.141592599" a :RESULT . + "3.1415926 + 10000000.0 = 10000003.1415926" a :RESULT . "3.1415926 + 1729 = 1732.1415926" a :RESULT . debian/patches/1001_cwm_fix_spelling.patch0000644000000000000000000002472111674272546015654 0ustar --- a/cwm +++ b/cwm @@ -80,7 +80,7 @@ steps, in order left to right: ---rdf Input & Output ** in RDF/XML insead of n3 from now on +--rdf Input & Output ** in RDF/XML instead of n3 from now on --n3 Input & Output in N3 from now on. (Default) --rdf=flags Input & Output ** in RDF and set given RDF flags --n3=flags Input & Output in N3 and set N3 flags @@ -91,7 +91,7 @@ --bySubject Store input and regurgitate in subject order * --no No output * (default is to store and pretty print with anonymous nodes) * ---base= Set the base URI. Input or output is done as though theis were the document URI. +--base= Set the base URI. Input or output is done as though this were the document URI. --closure=flags Control automatic lookup of identifiers (see below) Load document. URI may be relative to current directory. @@ -133,16 +133,16 @@ cwm foo.n3 bar.n3 --think Combine data and find all deductions cwm foo.n3 --flat --n3=spart -Mode flags affect inference extedning to the web: +Mode flags affect inference extending to the web: r Needed to enable any remote stuff. a When reading schema, also load rules pointed to by schema (requires r, s) E Errors loading schemas of definitive documents are ignored - m Schemas and definitive documents laoded are merged into the meta knowledge + m Schemas and definitive documents loaded are merged into the meta knowledge (otherwise they are consulted independently) s Read the schema for any predicate in a query. u Generate unique ids using a run-specific -Closure flags are set to cause the working formula to be automatically exapnded to +Closure flags are set to cause the working formula to be automatically expanded to the closure under the operation of looking up: s the subject of a statement added @@ -158,7 +158,7 @@ See http://www.w3.org/2000/10/swap/doc/cwm for more documentation. -Setting the environment variable CWM_RDFLIB to 1 maked Cwm use rdflib to parse +Setting the environment variable CWM_RDFLIB to 1 makes Cwm use rdflib to parse rdf/xml files. Note that this requires rdflib. """ --- a/swap/cwm.py +++ b/swap/cwm.py @@ -80,7 +80,7 @@ steps, in order left to right: ---rdf Input & Output ** in RDF/XML insead of n3 from now on +--rdf Input & Output ** in RDF/XML instead of n3 from now on --n3 Input & Output in N3 from now on. (Default) --rdf=flags Input & Output ** in RDF and set given RDF flags --n3=flags Input & Output in N3 and set N3 flags @@ -91,7 +91,7 @@ --bySubject Store input and regurgitate in subject order * --no No output * (default is to store and pretty print with anonymous nodes) * ---base= Set the base URI. Input or output is done as though theis were the document URI. +--base= Set the base URI. Input or output is done as though this were the document URI. --closure=flags Control automatic lookup of identifiers (see below) Load document. URI may be relative to current directory. @@ -133,16 +133,16 @@ cwm foo.n3 bar.n3 --think Combine data and find all deductions cwm foo.n3 --flat --n3=spart -Mode flags affect inference extedning to the web: +Mode flags affect inference extending to the web: r Needed to enable any remote stuff. a When reading schema, also load rules pointed to by schema (requires r, s) E Errors loading schemas of definitive documents are ignored - m Schemas and definitive documents laoded are merged into the meta knowledge + m Schemas and definitive documents loaded are merged into the meta knowledge (otherwise they are consulted independently) s Read the schema for any predicate in a query. u Generate unique ids using a run-specific -Closure flags are set to cause the working formula to be automatically exapnded to +Closure flags are set to cause the working formula to be automatically expanded to the closure under the operation of looking up: s the subject of a statement added @@ -158,7 +158,7 @@ See http://www.w3.org/2000/10/swap/doc/cwm for more documentation. -Setting the environment variable CWM_RDFLIB to 1 maked Cwm use rdflib to parse +Setting the environment variable CWM_RDFLIB to 1 makes Cwm use rdflib to parse rdf/xml files. Note that this requires rdflib. """ --- a/swap/notation3.py +++ b/swap/notation3.py @@ -3,7 +3,7 @@ $Id: notation3.py,v 1.200 2007/12/11 21:18:08 syosi Exp $ -This module implements a Nptation3 parser, and the final +This module implements a Notation3 parser, and the final part of a notation3 serializer. See also: @@ -11,7 +11,7 @@ Notation 3 http://www.w3.org/DesignIssues/Notation3 -Closed World Machine - and RDF Processor +Closed World Machine - an RDF Processor http://www.w3.org/2000/10/swap/cwm To DO: See also "@@" in comments @@ -19,10 +19,10 @@ - Clean up interfaces ______________________________________________ -Module originally by Dan Connolly, includeing notation3 +Module originally by Dan Connolly, including notation3 parser and RDF generator. TimBL added RDF stream model and N3 generation, replaced stream model with use -of common store/formula API. Yosi Scharf developped +of common store/formula API. Yosi Scharf developed the module, including tests and test harness. """ @@ -774,7 +774,7 @@ Note that the RDF convention of directly concatenating NS and local name is now used though I prefer inserting a '#' - to make the namesapces look more like what XML folks expect. + to make the namespaces look more like what XML folks expect. """ qn = [] j = self.qname(str, i, qn) @@ -1232,14 +1232,14 @@ q Quiet - don't output comments about version and base URI used. r Relative URI suppression. Always use absolute URIs. s Subject must be explicit for every statement. Don't use ";" shorthand. -t "this" and "()" special syntax should be suppresed. +t "this" and "()" special syntax should be suppressed. u Use \u for unicode escaping in URIs instead of utf-8 %XX v Use "this log:forAll" for @forAll, and "this log:forAll" for "@forSome". / If namespace has no # in it, assume it ends at the last slash if outputting. Flags for N3 input: -B Turn any blank node into a existentially qualified explicitly named node. +B Turn any blank node into an existentially qualified explicitly named node. """ # " @@ -1248,8 +1248,8 @@ # # Within the program, the URI of a resource is kept the same, and in fact # tampering with it would leave risk of all kinds of inconsistencies. -# Hwoever, on output, where there are URIs whose values are irrelevant, -# such as variables and generated IDs from anonymous ndoes, it makes the +# However, on output, where there are URIs whose values are irrelevant, +# such as variables and generated IDs from anonymous nodes, it makes the # document very much more readable to regenerate the IDs. # We use here a convention that underscores at the start of fragment IDs # are reserved for generated Ids. The caller can change that. --- a/swap/sax2rdf.py +++ b/swap/sax2rdf.py @@ -1,6 +1,6 @@ #! /usr/bin/python """ - A parser for RDF/XML built on the sax2 interface; + A parser for RDF/XML built on the SAX2 interface; derived from a parser for RDF/XML built on the xmllib XML parser. To do: Passing on namesapce bindings! @@ -86,8 +86,8 @@ # and suggests TimBL try the win32 distribution from # the PyXML sourceforge project # http://prdownloads.sourceforge.net/pyxml/PyXML-0.6.5.win32-py2.1.exe - # TimBL points outhe does not use windows env't but cygwin and - # giuesses he should compile python2-xml for cygwin. + # TimBL points out he does not use windows env't but cygwin and + # guesses he should compile python2-xml for cygwin. import xml.sax._exceptions from xml.sax.saxutils import quoteattr from xml.sax.handler import feature_namespaces @@ -538,7 +538,7 @@ elif name == "nodeID": assert not gotSubject if not isXML.isNCName(value): - raise BadSyntax(sys.exc_info(), 'A nodeID must be a NCName %s' % value) + raise BadSyntax(sys.exc_info(), 'A nodeID must be an NCName %s' % value) obj = self._nodeIDs.get(value, None) if obj == None: obj = self.newBlankNode() @@ -871,19 +871,19 @@ class RDFXMLParser(RDFHandler): - """XML/RDF parser based on sax XML interface""" + """XML/RDF parser based on SAX XML interface""" flagDocumentation = """ Flags to control RDF/XML INPUT (after --rdf=) follow: S - Strict spec. Unknown parse type treated as Literal instead of error. T - take foreign XML as transparent and parse any RDF in it - (default it is to ignore unless rdf:RDF at top level) + (default is to ignore unless rdf:RDF at top level) L - If non-rdf attributes have no namespace prefix, assume in local <#> namespace - D - Assume default namespace decalred as local document is assume xmlns="" + D - Assume default namespace declared as local document is assume xmlns="" R - Do not require an outer , treating the file as RDF content (opposite of T) Note: The parser (sax2rdf) does not support reification, bagIds, or parseType=Literal. - It does support the rest of RDF inc. datatypes, xml:lang, and nodeIds. + It does support the rest of RDF incl. datatypes, xml:lang, and nodeIds. """ @@ -924,7 +924,7 @@ class XMLDOMParser(RDFXMLParser): - """XML format to RDF Graph parser based on sax XML interface""" + """XML format to RDF Graph parser based on SAX XML interface""" def __init__(self, thisDoc=None, flags="", why=None): --- a/swap/toXML.py +++ b/swap/toXML.py @@ -6,7 +6,7 @@ This module implements basic sources and sinks for RDF data. It defines a stream interface for such data. It has a command line interface, can work as a web query engine, -and has built in test(), all of which demosntrate how it is used. +and has built in test(), all of which demonstrate how it is used. To make a new RDF processor, subclass RDFSink. @@ -20,7 +20,7 @@ To DO: See also "@@" in comments -Internationlization: +Internationalization: - Decode incoming N3 file as unicode - Encode outgoing file - unicode \u (??) escapes in parse debian/patches/series0000644000000000000000000000011112174576402012033 0ustar 1002_adjust_math_rounding_in_testsuite.patch 1001_cwm_fix_spelling.patch debian/cant0000755000000000000000000000057411171731414010047 0ustar #!/bin/sh # Cwm wrapper for use with help2man basename="$(basename "$0")" basedir="$(dirname "$0")" export PYTHONPATH="$basedir/.." case "$1" in --version) python "$basedir/../swap/$basename.py" --revision 2>&1 | grep \$Id: | sed "s/.*,v *//; s/ .*//" ;; --description) echo "CAnonicalize N-Triples" ;; *) python "$basedir/../swap/$basename.py" "$@" ;; esac debian/cwm0000755000000000000000000000065611171731402007706 0ustar #!/bin/sh # Cwm wrapper for use with help2man basename="$(basename "$0")" basedir="$(dirname "$0")" export PYTHONPATH="$basedir/.." case "$1" in --version) python "$basedir/../swap/$basename.py" --revision 2>&1 | sed "s/.*$basename= \$Revision: //; s/ \$ llyn.*//" ;; --description) echo "Closed World Machine, an RDF/N3 semantic web data processor" ;; *) python "$basedir/../swap/$basename.py" "$@" ;; esac debian/control0000644000000000000000000000270012174602742010575 0ustar Source: swap-cwm Section: python Priority: optional Maintainer: Jonas Smedegaard Build-Depends: cdbs (>= 0.4.97~), devscripts, debhelper, dh-buildinfo, python, python-dev (>= 2.3.5-7), help2man Standards-Version: 3.9.4 Homepage: http://www.w3.org/2000/10/swap/ Vcs-Git: git://anonscm.debian.org:/git/collab-maint/swap-cwm Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/swap-cwm.git Package: python-swap Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, ${cdbs:Depends} Provides: ${python:Provides} Suggests: ${cdbs:Suggests} Description: Semantic Web Area for Play SWAP is a Python library of RDF/XML and RDF/N3 semantic web routines, primarily used by Cwm. . SWAP is an acronym for both "Semantic Web Area for Play" and "Semantic Web Application Platform". Package: swap-cwm Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, ${cdbs:Depends} Suggests: ${cdbs:Suggests} Description: RDF/XML and RDF/N3 semantic web data processor Cwm (pronounced coom) is a general-purpose data processor for the semantic web, somewhat like sed, awk, etc. for text files or XSLT for XML. It is a forward chaining reasoner which can be used for querying, checking, transforming and filtering information. Its core language is RDF, extended to include rules, and it uses RDF/XML or RDF/N3 (Notation3) serializations as required. . Also included is the RDF tools cant and delta. debian/source/0000755000000000000000000000000012174602507010472 5ustar debian/source/format0000644000000000000000000000001411667373113011704 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000625712174603027011054 0ustar swap-cwm (1.2.1-5) unstable; urgency=low * Reintroduce to Debian: Still relevant after all - only semantic reasoner currently packaged for Debian directly handling RDF. * Modernize CDBS usage: + Drop locally shipped snippets (all included in cdbs package now). + Declare package relations recursively expanded (using = not := ). * Switch packaging to Switch to 3.0 (quilt) format. + Stop including CDBS snippet patchsys-quilt. + Stop build-depending on quilt or patchutils. * Refresh patch 1001 with compacting quilt options. * Switch to default Python install helper (not python-support). * Update README.source to emphasize control.in file as *not* a show-stopper for contributions, referring to wiki page for details. * Update copyright/licensing info: + Bump file format to 1.0. + Drop obsolete/bogus packaging-related Files sections. + Trim copyright paragraphs, whitespace, License short-names and GPL comment. + Fix use license and comment pseudo-sections to obey silly restrictions of copyright format 1.0. + Refer to FSF web address (not postal address) in rules file, and include that reference in copyright file license comment. + Add dummy License section for license only optionally needed. + Bump packaging license to GPL-3+, and extend/TRIM copyrigt coverage for myself to include (only) recent years. + Update to use Upstream-Contact (not Upstream-Maintainer). * Bump debhelper compatibility to 8. * Use canonical hostname (anonscm.debian.org) in Vcs-* URIs. * Relax build-dependencies. * Add patch 1002 to adjust rounding in math test. Closes: bug#646661. Thanks to Mònica Ramírez Arceda. * Bump standards-version to 3.9.4. * Add lintian override for (not really) missing package dependency. -- Jonas Smedegaard Sat, 27 Jul 2013 01:28:16 +0200 swap-cwm (1.2.1-4) unstable; urgency=low * Have both python-swap and swap-cwm suggest python-crypto and python-rdflib. * Have swap-cwm suggest otter. * Maintain all package dependencies in debian/rules, with comments. * Install Cwm binary as cwm (not swap-cwm). * Fix spelling (just small typos) in --help output of cwm script. * Fix typo in README.source: new new. * Extend package-relation cleanup to include debhelper 6 and 7.0.1. * Drop TopGit noise from cdbs-skel. * Fix description in copyright header of debian/rules. * Use variables libpkg and pkg in debian/rules. * Generate manpages using help2man. -- Jonas Smedegaard Fri, 17 Apr 2009 00:59:23 +0200 swap-cwm (1.2.1-3) unstable; urgency=low * Fix have swap-cwm depend on python-swap. * Install documentation only on python-swap. * Use $(MAKE) when invoking tests (hopefully fixes invoking twice). -- Jonas Smedegaard Wed, 11 Mar 2009 04:43:53 +0100 swap-cwm (1.2.1-2) unstable; urgency=low * Fix debian/copyright to include all licenses and owners. * Install upstream changelog and documentation. -- Jonas Smedegaard Wed, 11 Mar 2009 03:51:04 +0100 swap-cwm (1.2.1-1) unstable; urgency=low * Initial release. Closes: bug#519205. -- Jonas Smedegaard Wed, 11 Mar 2009 00:33:58 +0100 debian/README.source0000644000000000000000000000056312121764047011355 0ustar CDBS+git-buildpackage --------------------- This source package uses CDBS and git-buildpackage. NMUs need not (but are encouraged to) make special use of these tools. In particular, the debian/control.in file can be completely ignored. More info here: http://wiki.debian.org/CDBS+git-buildpackage -- Jonas Smedegaard Mon, 18 Feb 2013 12:55:37 +0100 debian/delta0000755000000000000000000000071711171731407010214 0ustar #!/bin/sh # Cwm wrapper for use with help2man basename="$(basename "$0")" basedir="$(dirname "$0")" export PYTHONPATH="$basedir/.." case "$1" in --version) python "$basedir/../swap/$basename.py" --revision 2>&1 | grep \$Id: | sed "s/.*,v *//; s/ .*//" ;; --description) echo "find differences between two RDF graphs" ;; --help) python "$basedir/../swap/$basename.py" "$@" 2>&1 ;; *) python "$basedir/../swap/$basename.py" "$@" ;; esac debian/swap-cwm.lintian-overrides0000644000000000000000000000015412174602575014315 0ustar # swap-cwm depends on python-swap which in turn depends on python swap-cwm: python-script-but-no-python-dep debian/compat0000644000000000000000000000000212174571036010372 0ustar 8 debian/watch0000644000000000000000000000036511155614051010222 0ustar # Run the "uscan" command to check for upstream updates and more. version=3 # Below works only for --report - for actual download use the following: # debian/rules get-orig-source http://dev.w3.org/cvsweb/2000/10/swap/ cwm-([\d+\.]+)\.tar\.gz debian/copyright_hints0000644000000000000000000002767712174602735012360 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: PKG-INFO RDFSink.html README README~ cant.py check.html check.py cwm.html cwm_crypto.html cwm_list.html cwm_math.html cwm_maths.html cwm_os.html cwm_sparql.html cwm_string.html cwm_time.html cwm_times.html debian/README.source debian/cant debian/compat debian/control debian/control.in debian/cwm debian/delta debian/gbp.conf debian/patches/1001_cwm_fix_spelling.patch debian/patches/1002_adjust_math_rounding_in_testsuite.patch debian/patches/README debian/patches/series debian/source/format debian/swap-cwm.lintian-overrides debian/watch delta diag.html doc/changes.html formula.html grammar/Makefile grammar/README.txt grammar/bnf-rules.n3 grammar/bnf.n3 grammar/bnf2html.n3 grammar/n3-ql.n3 grammar/n3-rdf.n3 grammar/n3-rules.n3 grammar/n3-yacc.c grammar/n3.n3 grammar/predictiveParser.py grammar/sparql.n3 llyn.html myStore.html notation3.html pretty.html query.html rdflib2rdf.html reify.html sax2rdf.html setup.py setup.py~ sparql2cwm.html swap/OrderedSequence.py swap/RDFSink.py swap/__init__.py swap/cant.py swap/check.py swap/cwm_crypto.py swap/cwm_list.py swap/cwm_math.py swap/cwm_maths.py swap/cwm_os.py swap/cwm_set.py swap/cwm_sparql.py swap/cwm_string.py swap/cwm_time.py swap/cwm_times.py swap/cwm_trigo.py swap/cwm_xml.py swap/dbork/SqlDB.py swap/dbork/TableRenderer.py swap/delta.py swap/diag.py swap/formula.py swap/importList.py swap/isXML.py swap/local_decimal.py swap/mixin.py swap/myStore.py swap/my_profiler.py swap/n3p/n3meta.py swap/n3p/n3p.py swap/n3p_tm.py swap/notation3.py swap/pretty.py swap/pychinko/__init__.py swap/pychinko/builtins.py swap/pychinko/conclusion.py swap/pychinko/config.py swap/pychinko/exception.py swap/pychinko/helpers.py swap/pychinko/interpreter.py swap/pychinko/nodes.py swap/pychinko/prooftrace.py swap/pychinko/rete.py swap/pychinko/terms.py swap/pycwmko.py swap/query.py swap/rdflib2rdf.py swap/rdflib_user.py swap/rdfxml.py swap/reify.py swap/set_importer.py swap/sparql/Makefile swap/sparql/sparqlClient.py swap/sparql/sparql_parser.py swap/sparql/sparql_table.py swap/sparql/sparql_tokens.py swap/sparql/sparql_tokens_table.py swap/sparql/webserver.py swap/sparql2cwm.py swap/term.py swap/toXML.py swap/triple_maker.py swap/update.py swap/uripath.py swap/webAccess.py swap/why.py term.html test/Makefile test/animal.rdf test/anon-prop.n3 test/anonymous_loop.n3 test/contexts.n3 test/cwm/detailed.tests test/cwm/fam-rules.n3 test/cwm/fam-thinkwith.ref test/cwm/fam.n3 test/daml-ex.n3 test/daml-ont.n3 test/daml-ont.rdf test/daml-pref.n3 test/datatypes/dec-div.n3 test/delta/detailed.tests test/delta/t3/from.n3 test/delta/t3/to-diff.n3 test/delta/t3/to-same.n3 test/dt/dtlit1.n3 test/equiv-syntax.n3 test/i18n/n3string.n3 test/includes/bnode-conclude-ref.n3 test/includes/bnodeConclude.n3 test/includes/builtins.n3 test/includes/concat.n3 test/includes/conclusion.n3 test/includes/conjunction.n3 test/includes/detailed.tests test/includes/foo.n3 test/includes/genBnodeInNestedFormula.n3 test/includes/list-in-ref.n3 test/includes/list-in.n3 test/includes/n3ExprFor.n3 test/includes/quant-implies.n3 test/includes/quantifiers.n3 test/includes/quantifiers_limited.n3 test/includes/t1.n3 test/includes/t10.n3 test/includes/t10a.n3 test/includes/t11.n3 test/includes/t2.n3 test/includes/t3.n3 test/includes/t4.n3 test/includes/t6.n3 test/includes/t8.n3 test/includes/t9br.n3 test/includes/uri-object-invalid.n3 test/includes/uri-startswith.n3 test/includes/xsd.n3 test/includes/xsd.ref test/invalid-ex.n3 test/list/append.n3 test/list/bnode_in_list_in_list.n3 test/list/builtin_generated_match.n3 test/list/construct.n3 test/list/detailed.tests test/list/double.n3 test/list/itemType.rdf test/list/last.n3 test/list/list-bug1.n3 test/list/list-bug2.n3 test/list/r1.n3 test/list/unify1.n3 test/list/unify4.n3 test/lists-simple.n3 test/lists.n3 test/log-filter.n3 test/math/detailed.tests test/math/long.n3 test/math/math-test.n3 test/math/quotient_string.n3 test/math/trigo-test.n3 test/math/trigo.ref.n3 test/n3parser.tests test/nodeID/classes.n3 test/nodeID/classes.ref.rdf test/nodeID/ex1.rdf test/norm/av.n3 test/norm/detailed.tests test/norm/fix.rdf test/ntriples/detailed.tests test/ntriples/t1.n3 test/ntriples/t1.ref.ntriples test/on-add/smush.n3 test/os/argv.n3 test/os/environ.n3 test/owl-ex.rdf test/paw/detailed.tests test/ql/detailed.tests test/ql/kb1.n3 test/ql/t00-ref.n3 test/ql/t00.n3 test/ql/t01-ref.n3 test/ql/t01.n3 test/query/filter-bnodes.n3 test/query/trivial-filter.n3 test/rdfcore-tests.n3 test/reason/danc.n3 test/reason/detailed.tests test/reason/f9.n3 test/reason/poor-urop.n3 test/reason/rename-loop.n3 test/reason/single_gen.n3 test/reason/socrates.n3 test/reason/t1.n3 test/reason/t2.n3 test/reason/t3.n3 test/reason/t4.n3 test/reason/t5.n3 test/reason/t6.n3 test/reason/t8.n3 test/reason/t9.n3 test/reason/timbl.n3 test/ref/animal-1.rdf test/ref/animal-ntriples.n3 test/ref/animal.n3 test/ref/anon-prop-1.n3 test/ref/anonymous_loop.ref test/ref/append-out.n3 test/ref/argv-1.n3 test/ref/argv-2.n3 test/ref/base64.n3 test/ref/bi-concat.n3 test/ref/bi-quant-imp.n3 test/ref/bi-quant.n3 test/ref/bi-t1.n3 test/ref/bi-t10.n3 test/ref/bi-t11.n3 test/ref/bi-t2.n3 test/ref/bi-t3.n3 test/ref/bi-t4.n3 test/ref/bi-t6.n3 test/ref/bi-t8.n3 test/ref/bi-t9.n3 test/ref/bi-uri-startswith.n3 test/ref/bnode.n3 test/ref/bnode.rdf test/ref/bnode_in_list_in_list.ref test/ref/colon-in-uri.n3 test/ref/colon-no-qname.n3 test/ref/conclusion.n3 test/ref/conjunction.n3 test/ref/contexts-1.n3 test/ref/daml-ex.n3 test/ref/daml-ont.n3 test/ref/dec-div.ref.n3 test/ref/djb1a-out.n3 test/ref/dot-dash.n3 test/ref/dtlit1.n3 test/ref/endsWith-out.n3 test/ref/environ.n3 test/ref/equiv-syntax.n3 test/ref/filter-bnode.n3 test/ref/genBnodeInNestedFormula-out.n3 test/ref/in-xml-t.n3 test/ref/in-xml.n3 test/ref/includes-builtins.n3 test/ref/itemType.n3 test/ref/keywords1.n3 test/ref/keywords2.n3 test/ref/li-double.n3 test/ref/li-r1.n3 test/ref/list-bug1.n3 test/ref/list-bug2.n3 test/ref/list-builtin_generated_match.n3 test/ref/list-construct.n3 test/ref/list-last.n3 test/ref/list-unify1.n3 test/ref/list-unify2.n3 test/ref/list-unify3.n3 test/ref/list-unify4.n3 test/ref/list-unify5.n3 test/ref/lists-simple-1.rdf test/ref/lists-simple.n3 test/ref/lists.n3 test/ref/lstring-out.n3 test/ref/math1.n3 test/ref/n3ExprFor-out.n3 test/ref/n3string.n3 test/ref/no-last-nl.n3 test/ref/norm-av1.n3 test/ref/norm-av2.n3 test/ref/numbers-n.n3 test/ref/numbers.n3 test/ref/path1.n3 test/ref/path2.n3 test/ref/piped-t016-out.n3 test/ref/prefix1.rdf test/ref/prefix2.rdf test/ref/prefix3.rdf test/ref/quotient_string.ref.n3 test/ref/qvars1.n3 test/ref/qvars2.n3 test/ref/rdf-redefine.rdf test/ref/reason-poor-urop.n3 test/ref/reason-rename-loop.n3 test/ref/reason-single-gen.n3 test/ref/reason-t01check.n3 test/ref/reason-t02check.n3 test/ref/reason-t03check.n3 test/ref/reason-t04check.n3 test/ref/reason-t05check.n3 test/ref/reason-t06check.n3 test/ref/reason-t08check.n3 test/ref/reason-t09check.n3 test/ref/reason-t09filtercheck.n3 test/ref/reason-t90check.n3 test/ref/reluri-1.rdf test/ref/resolves-rdf.n3 test/ref/roadmap-test.dot test/ref/rules-flag-a.n3 test/ref/rules-flag-t.n3 test/ref/rules12-1.n3 test/ref/rules12-n.n3 test/ref/rules13-n.n3 test/ref/schema1.n3 test/ref/schema2.n3 test/ref/smush.rdf test/ref/smush6.n3 test/ref/socrates.n3 test/ref/strquot.n3 test/ref/strquot_a.n3 test/ref/timet1.n3 test/ref/timet1s.n3 test/ref/two-route.n3 test/ref/underbarscope-out.n3 test/ref/uriEncode.n3 test/ref/vblsNotURIs-out.n3 test/ref/xml-base3.n3 test/ref/xml-redefine.rdf test/ref/xml-redefine2.rdf test/ref/xml-syntax-basic-serialization.rdf test/ref/xmllit.nt test/regression.n3 test/reify/detailed.tests test/reluri-1.n3 test/resolves-rdf.n3 test/retest.py test/roadmap/test.graph test/roadmap/todot.n3 test/rules12.n3 test/rules13.n3 test/schema-filter.n3 test/schema-rules.n3 test/sets/detailed.tests test/sets/set-builtins.ref test/sets/set_ops.n3 test/sets/sets-reified.n3 test/sets/sets.n3 test/smush-examples.rdf test/smush-query.n3 test/smush-schema.n3 test/sparql/construct.sparql test/sparql/construct1-result.n3 test/sparql/data.n3 test/sparql/data_construct1.n3 test/sparql/datatype-result.n3 test/sparql/datatype.n3 test/sparql/datatype.sparql test/sparql/detailed.tests test/sparql/example.rq test/sparql/filter6-result.n3 test/sparql/filter6.sparql test/sparql/filter6_data.n3 test/sparql/mixing-egl-result.n3 test/sparql/mixing_egl.n3 test/sparql/mixing_egl.rq test/sparql/notIncludes4-result.n3 test/sparql/notIncludes4.sparql test/sparql/notIncludes4_data.n3 test/sparql/optional.sparql test/sparql/optional1-result.n3 test/sparql/optional_data.n3 test/sparql/query1_result.rl test/sparql/sparql_builtin1.n3 test/string/detailed.tests test/string/endsWith.n3 test/string/uriEncode.n3 test/strquot.n3 test/syntax/base-ref.n3 test/syntax/base.n3 test/syntax/boolean-ref.n3 test/syntax/boolean.n3 test/syntax/colon-in-uri.rdf test/syntax/colon-no-qname.n3 test/syntax/decimal-ref.n3 test/syntax/decimal.n3 test/syntax/detailed.tests test/syntax/djb1a.n3 test/syntax/dot-dash.n3 test/syntax/keywords1.n3 test/syntax/keywords2.n3 test/syntax/lstring.n3 test/syntax/no-last-nl.n3 test/syntax/numbers.n3 test/syntax/path1.n3 test/syntax/path2.n3 test/syntax/qvars1.n3 test/syntax/qvars2.n3 test/syntax/space-in-uri-rdf.rdf test/syntax/space-in-uri-ref.n3 test/syntax/space-in-uri.n3 test/syntax/this-quantifiers-ref2.n3 test/syntax/this-rules-ref2.n3 test/syntax/trailing-semicolon-ref.nt test/syntax/trailing-semicolon.n3 test/testmeta.n3 test/time/t1.n3 test/time/t1s.n3 test/two-route.n3 test/underbarscope.n3 test/unify/reflexive-ref.n3 test/unify/reflexive.n3 test/vblsNotURIs.n3 test/xml-syntax/basic-serialization.n3 test/xml-syntax/in-xml.xml test/xml-syntax/non-ascii-pred.rdf test/xml-syntax/rdf_prefix.n3 test/xml-syntax/xml_prefix.n3 test/xml-syntax/xml_prefix2.n3 test/xml-syntax/xmlbase3.rdf thing.html toXML.html uripath.html why.html xml2infoset.html Copyright: *No copyright* License: UNKNOWN FIXME Files: test/forgetDups.n3 test/sameDan.n3 test/sameThing.n3 test/string/roughly.n3 Copyright: 2001, W3C (MIT, Keio, INRIA)" License: UNKNOWN FIXME Files: test/norm/t-200401-unicode.rdf test/norm/t-200401-unicode.ref Copyright: 2004, Norman Walsh. License: UNKNOWN FIXME Files: LICENSE.n3 LICENSE.rdf Copyright: 2000,1,2 W3C (MIT, INRIA, Keio) other contributers mentioned in individual files License: UNKNOWN FIXME Files: test/ref/roughly-out.n3 test/ref/sameDan.n3 Copyright: 2001, W3C (MIT, Keio, INRIA)"; License: UNKNOWN FIXME Files: cwm swap/cwm.py Copyright: 2000-2004, World Wide Web Consortium, (Massachusetts License: UNKNOWN FIXME Files: swap/sax2rdf.py Copyright: 2002, Daniel Krech, http://eikeon.com/ HOLDERS AND CONTRIBUTORS License: BSD-3-clause FIXME Files: debian/rules Copyright: 2009, 2011, 2013, Jonas Smedegaard License: GPL-3+ FIXME Files: swap/llyn.py Copyright: () 2000-2004, World Wide Web Consortium, (Massachusetts Institute the rest being a list License: UNKNOWN FIXME Files: swap/xmlC14n.py Copyright: 2001, MIT. = ''' 2001, Zolera Systems Inc. License: UNKNOWN FIXME Files: LICENSE Copyright: HOLDERS MAKE NO REPRESENTATIONS OR HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT holders holders may holders under the following in this software License: UNKNOWN FIXME Files: swap/isodate.py Copyright: 2002, Mark Nottingham, License: UNKNOWN FIXME Files: test/xml-syntax/xmllit.rdf Copyright: World Wide Web Consortium, (Massachusetts Institute of clause at License: UNKNOWN FIXME debian/copyright0000644000000000000000000001262712174601170011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Cwm Upstream-Contact: Tim Berners-Lee http://lists.w3.org/Archives/Public/public-cwm-bugs/ Upstream-Source: http://www.w3.org/2000/10/swap http://dev.w3.org/cvsweb/2000/10/swap/ Files: * Copyright: 2000-2004, World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University) License: W3C Files: swap/sax2rdf.py Copyright: 2002, Daniel Krech License: BSD-3-clause Files: swap/isodate.py Copyright: 2002, Mark Nottingham License: other-Permissive THIS SOFTWARE IS SUPPLIED WITHOUT WARRANTY OF ANY KIND, AND MAY BE COPIED, MODIFIED OR DISTRIBUTED IN ANY WAY, AS LONG AS THIS NOTICE AND ACKNOWLEDGEMENT OF AUTHORSHIP REMAIN. Files: swap/xmlC14n.py Copyright: 2001, Zolera Systems Inc. 2001, MIT. License: PSF-2.0+ or W3C Comment: License: . Distributed under the terms of: Python 2.0 License or later. http://www.python.org/2.0.1/license.html or W3C Software License http://www.w3.org/Consortium/Legal/copyright-software-19980720 Files: debian/* Copyright: 2009,2011,2013 Jonas Smedegaard License: GPL-3+ License: W3C W3C® SOFTWARE NOTICE AND LICENSE http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 . This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. . Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications: . 1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. . 2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. . 3. Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) . THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. . COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. . The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. License: BSD-3-clause 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 Daniel Krech 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. License: PSF-2.0+ Comment: . This license is unused in Debian (part of a dual-licensing) and therefore not required to list verbatim here. License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. . Comment . On Debian systems the 'GNU General Public License' version 3 is located in '/usr/share/common-licenses/GPL-3'. . You should have received a copy of the 'GNU General Public License' along with this program. If not, see . debian/gbp.conf0000644000000000000000000000014611155616363010615 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True sign-tags = True debian/rules0000755000000000000000000000736512174575775010305 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2009, 2011, 2013 Jonas Smedegaard # Description: Main Debian packaging script for Cwm # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk libpkg = python-swap pkg = swap-cwm cmds = cant cwm delta manpages = $(cmds:%=debian/%.1) DEB_UPSTREAM_URL = http://www.w3.org/2000/10/swap DEB_UPSTREAM_PACKAGE = cwm DEB_UPSTREAM_TARBALL_MD5 = e89a71e4f48ee5f9c89d4ba2e88f5a73 DEB_INSTALL_CHANGELOGS_ALL = doc/changes.html DEB_INSTALL_DOCS_$(libpkg) += *.html DEB_INSTALL_MANPAGES_$(pkg) = $(manpages) DEB_CLEAN_EXCLUDE = README~ setup.py~ # Install directly into Python library package DEB_PYTHON_DESTDIR = $(CURDIR)/debian/$(cdbs_curpkg) ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) build/$(libpkg):: debian/stamp-python-check debian/stamp-python-check: debian/python-module-stampdir/$(libpkg) $(MAKE) -C test post-install P="python$(cdbs_python_compile_version)" touch $@ clean:: rm -rf test/,diffs test/,temp rm -f test/pyc-check debian/stamp-python-check endif # Move scripts from library to cwm package and fix hashbang # - Strip hardcoded python version # - Use default system Python # (binary-fixup rule is too late for dh_pycentral dependency resolving) common-binary-indep:: debian/$(pkg)/usr/bin debian/$(pkg)/usr/bin: install/$(libpkg) mkdir -p debian/$(pkg)/usr mv debian/$(libpkg)/usr/bin debian/$(pkg)/usr/ egrep -r -l -Z '^#! ?/(usr/)?(local/)?bin/(env )?python[[:print:]]*$$' debian/$(pkg)/usr/bin \ | xargs -r -0 perl -pi -e 's,^#! ?/(usr/)?(local/)?bin/(env )?python[[:print:]]*$$,#!/usr/bin/python$(cdbs_python_compile_version),' # Fix filename of scripts # - strip extension binary-post-install/$(pkg):: mv debian/$(cdbs_curpkg)/usr/bin/cant.py debian/$(cdbs_curpkg)/usr/bin/cant # Strip hashbang from Python modules binary-fixup/$(libpkg):: egrep -r -l -Z '^#! ?/(usr/)?(local/)?bin/(env )?python[[:print:]]*$$' debian/$(cdbs_curpkg)/usr/share/py* \ | xargs -r -0 perl -ni -e 'print unless m,^#! ?/(usr/)?(local/)?bin/(env )?python[[:print:]]*$$,' # generate manpage based on --help of script itself # (using wrappers to emulate --version and provide --description) common-post-build-indep:: $(manpages) $(manpages): %.1 : % chmod +x $< help2man --name="$$($< --description)" --no-info --output=$@ $< perl -i -0 -p \ -e 's/^\.PP\noptions:\n\.PP$$/.SH OPTIONS/m; # fix marking options as a headline' \ -e 's/^(\\fB\\-\\-.*?)=\\fR([^ ]*)/$$1\\fR=\\fI$$2\\fR/mg; # fix option value hilite' \ -e 's/^(\w)$$/.B $$1/mg; # fix mode flags hilite' \ -e 's/^\\fB\\-\\-(.*?)\\fR([^ ]*) +/.TP\n.B \\--$$1$$2\n/mg; # improve option listing' \ -e 's/^(\.TP\n\.B.*\n[^\.].*\n)\.IP(\n\(.*)\n\.PP$$/$$1.RS$$2/mg; # keep option lines together' \ $@ clean:: rm -f $(manpages) # Needed for our packaging CDBS_BUILD_DEPENDS += help2man # tools needs library CDBS_DEPENDS_$(pkg) = $(libpkg) # Needed (sometimes) at runtime CDBS_SUGESTS_$(libpkg) = python-crypto, python-rdflib, $(pkg) CDBS_SUGESTS_$(pkg) = python-crypto, python-rdflib, otter debian/control.in0000644000000000000000000000253712174601257011212 0ustar Source: swap-cwm Section: python Priority: optional Maintainer: Jonas Smedegaard Build-Depends: @cdbs@ Standards-Version: 3.9.4 Homepage: http://www.w3.org/2000/10/swap/ Vcs-Git: git://anonscm.debian.org:/git/collab-maint/swap-cwm Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/swap-cwm.git Package: python-swap Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, ${cdbs:Depends} Provides: ${python:Provides} Suggests: ${cdbs:Suggests} Description: Semantic Web Area for Play SWAP is a Python library of RDF/XML and RDF/N3 semantic web routines, primarily used by Cwm. . SWAP is an acronym for both "Semantic Web Area for Play" and "Semantic Web Application Platform". Package: swap-cwm Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, ${cdbs:Depends} Suggests: ${cdbs:Suggests} Description: RDF/XML and RDF/N3 semantic web data processor Cwm (pronounced coom) is a general-purpose data processor for the semantic web, somewhat like sed, awk, etc. for text files or XSLT for XML. It is a forward chaining reasoner which can be used for querying, checking, transforming and filtering information. Its core language is RDF, extended to include rules, and it uses RDF/XML or RDF/N3 (Notation3) serializations as required. . Also included is the RDF tools cant and delta.