cubi:cubi.git
7 years agoPut back static.pro debian
Adrien Bustany [Tue, 18 Jan 2011 07:53:21 +0000 (09:53 +0200)]
Put back static.pro

7 years agoRename debian package to libcubi-0.1
Adrien Bustany [Mon, 17 Jan 2011 13:55:42 +0000 (15:55 +0200)]
Rename debian package to libcubi-0.1

7 years agoAdd debian packaging files
Adrien Bustany [Fri, 14 Jan 2011 11:27:43 +0000 (13:27 +0200)]
Add debian packaging files

7 years agoSwitch to autoconf building system
Adrien Bustany [Fri, 14 Jan 2011 12:04:37 +0000 (14:04 +0200)]
Switch to autoconf building system

7 years agoRemove dead code in PatternGroup
Adrien Bustany [Fri, 7 Jan 2011 07:00:28 +0000 (09:00 +0200)]
Remove dead code in PatternGroup

Thanks to fkossebau for this one

7 years agoChanges: add QLatin1String()
Friedrich W. H. Kossebau [Thu, 6 Jan 2011 17:34:10 +0000 (18:34 +0100)]
Changes: add QLatin1String()

RevBy: TrustMe

7 years agoChanges: only insert to knownPatterns if not already contained
Friedrich W. H. Kossebau [Thu, 6 Jan 2011 17:33:25 +0000 (18:33 +0100)]
Changes: only insert to knownPatterns if not already contained

RevBy: Adrien

7 years agoFixes: explain actual NULL return values in APIDOX, also for unvalid Variable use...
Friedrich W. H. Kossebau [Thu, 6 Jan 2011 17:30:10 +0000 (18:30 +0100)]
Fixes: explain actual NULL return values in APIDOX, also for unvalid Variable use Variable(QString()), not Variable()

RevBy: Adrien

7 years agoFixes: error in linebreak before #ifndef CUBI_GLOBAL_H
Friedrich W. H. Kossebau [Thu, 6 Jan 2011 17:25:12 +0000 (18:25 +0100)]
Fixes: error in linebreak before #ifndef CUBI_GLOBAL_H

RevBy: TrustMe

7 years agoFixes: GeneratedVariableData::clone() did create ValueData, not GeneratedVariableData
Friedrich W. H. Kossebau [Thu, 6 Jan 2011 17:23:43 +0000 (18:23 +0100)]
Fixes: GeneratedVariableData::clone() did create ValueData, not GeneratedVariableData

RevBy: Adrien

7 years agoMake proper use of QString::mid() in Utils::escape()
Mathias Hasselmann [Wed, 5 Jan 2011 21:36:42 +0000 (22:36 +0100)]
Make proper use of QString::mid() in Utils::escape()

7 years agoAdd support for literals in filters
Adrien Bustany [Wed, 5 Jan 2011 16:18:12 +0000 (18:18 +0200)]
Add support for literals in filters

7 years agoAdd Exists to PatternBase::Type
Adrien Bustany [Wed, 5 Jan 2011 16:05:00 +0000 (18:05 +0200)]
Add Exists to PatternBase::Type

7 years agoAdd missing Exists files
Adrien Bustany [Wed, 5 Jan 2011 11:21:59 +0000 (13:21 +0200)]
Add  missing Exists files

7 years agoFix return style in Select::sparql
Adrien Bustany [Wed, 5 Jan 2011 09:50:21 +0000 (11:50 +0200)]
Fix return style in Select::sparql

7 years agoEscape control chars when pretty printing
Mathias Hasselmann [Tue, 4 Jan 2011 23:34:39 +0000 (00:34 +0100)]
Escape control chars when pretty printing

7 years agoAdd test for Exists in ut_select
Adrien Bustany [Wed, 5 Jan 2011 09:16:27 +0000 (11:16 +0200)]
Add test for Exists in ut_select

7 years agoAdd support for EXISTS
Adrien Bustany [Wed, 5 Jan 2011 09:00:36 +0000 (11:00 +0200)]
Add support for EXISTS

7 years agoFilter: cleanup unused code
Adrien Bustany [Wed, 5 Jan 2011 08:42:42 +0000 (10:42 +0200)]
Filter: cleanup unused code

7 years agoSelect: add function to add a Projection instance to projections
Adrien Bustany [Tue, 4 Jan 2011 09:58:02 +0000 (11:58 +0200)]
Select: add function to add a Projection instance to projections

7 years agoLiteralValue: add support for QVariant::Char
Adrien Bustany [Mon, 3 Jan 2011 12:22:43 +0000 (14:22 +0200)]
LiteralValue: add support for QVariant::Char

7 years agoAdd pretty printing to UpdateBase
Adrien Bustany [Sat, 18 Dec 2010 15:50:55 +0000 (17:50 +0200)]
Add pretty printing to UpdateBase

7 years agoAdd support for literal projections
Adrien Bustany [Thu, 16 Dec 2010 15:47:48 +0000 (17:47 +0200)]
Add support for literal projections

7 years agoAdd default constructor for LiteralValue
Adrien Bustany [Thu, 16 Dec 2010 15:46:18 +0000 (17:46 +0200)]
Add default constructor for LiteralValue

7 years agoMake Utils::indent smarter
Adrien Bustany [Thu, 16 Dec 2010 14:02:42 +0000 (16:02 +0200)]
Make Utils::indent smarter

7 years agoAdd DefaultSparqlOptions constant
Adrien Bustany [Thu, 16 Dec 2010 13:12:17 +0000 (15:12 +0200)]
Add DefaultSparqlOptions constant

7 years agoAdd pretty printing for a few classes
Adrien Bustany [Thu, 16 Dec 2010 13:01:01 +0000 (15:01 +0200)]
Add pretty printing for a few classes

7 years agoFix typo in PatternGroupData::sparql
Adrien Bustany [Wed, 15 Dec 2010 10:57:12 +0000 (12:57 +0200)]
Fix typo in PatternGroupData::sparql

7 years agoSimplify code in PatternGroup optims
Adrien Bustany [Mon, 13 Dec 2010 22:24:05 +0000 (00:24 +0200)]
Simplify code in PatternGroup optims

7 years agoPolish code in PatternGroupData optims
Adrien Bustany [Mon, 13 Dec 2010 15:01:37 +0000 (17:01 +0200)]
Polish code in PatternGroupData optims

7 years agoRequire duplicate removal for OPTIONAL nesting
Adrien Bustany [Mon, 13 Dec 2010 15:01:09 +0000 (17:01 +0200)]
Require duplicate removal for OPTIONAL nesting

7 years agoRemove dead code in PatternGroupData::listChains testing
Adrien Bustany [Mon, 13 Dec 2010 11:30:47 +0000 (13:30 +0200)]
Remove dead code in PatternGroupData::listChains

7 years agoAdd SparqlOptions name for 0
Adrien Bustany [Mon, 13 Dec 2010 11:28:52 +0000 (13:28 +0200)]
Add SparqlOptions name for 0

7 years agoUse safer logic in PatternGroupData::flatten
Adrien Bustany [Mon, 13 Dec 2010 11:26:43 +0000 (13:26 +0200)]
Use safer logic in PatternGroupData::flatten

7 years agoInclude ut_optim in test suite scripts
Adrien Bustany [Mon, 13 Dec 2010 11:21:54 +0000 (13:21 +0200)]
Include ut_optim in test suite scripts

7 years agoAvoid using Q_UNUSED
Adrien Bustany [Mon, 13 Dec 2010 11:21:27 +0000 (13:21 +0200)]
Avoid using Q_UNUSED

7 years agoFix typo in removeDuplicatePatterns comment
Adrien Bustany [Mon, 13 Dec 2010 11:18:32 +0000 (13:18 +0200)]
Fix typo in removeDuplicatePatterns comment

7 years agoProperly use QFlags for Options::SparqlOptions
Adrien Bustany [Mon, 13 Dec 2010 11:12:50 +0000 (13:12 +0200)]
Properly use QFlags for Options::SparqlOptions

7 years agoPatternGroup: Properly handle OPTIONALs in flatten()
Adrien Bustany [Fri, 10 Dec 2010 20:36:30 +0000 (22:36 +0200)]
PatternGroup: Properly handle OPTIONALs in flatten()

7 years agoAdd more optim unit tests
Adrien Bustany [Fri, 10 Dec 2010 14:47:49 +0000 (16:47 +0200)]
Add more optim unit tests

7 years agoOptim: nest OPTIONAL statements
Adrien Bustany [Thu, 9 Dec 2010 16:07:41 +0000 (18:07 +0200)]
Optim: nest OPTIONAL statements

7 years agoPattern: add qHash function
Adrien Bustany [Thu, 9 Dec 2010 16:06:58 +0000 (18:06 +0200)]
Pattern: add qHash function

7 years agoPatternBase: Add Sparql options
Adrien Bustany [Fri, 10 Dec 2010 12:45:43 +0000 (14:45 +0200)]
PatternBase: Add Sparql options

7 years agoPatternGroup: Don't return "OPTIONAL { }"
Adrien Bustany [Fri, 3 Dec 2010 15:59:08 +0000 (17:59 +0200)]
PatternGroup: Don't return "OPTIONAL { }"

An empty optional pattern group could return that string.

7 years agoUpdate ut_select for ORDER BY change
Adrien Bustany [Fri, 3 Dec 2010 15:29:12 +0000 (17:29 +0200)]
Update ut_select for ORDER BY change

7 years agoPatternGroup: Move duplicate removal in function
Adrien Bustany [Fri, 3 Dec 2010 15:27:45 +0000 (17:27 +0200)]
PatternGroup: Move duplicate removal in function

7 years agoInfixFunction: Reduce excessive parenthesis generation
Adrien Bustany [Fri, 3 Dec 2010 15:27:01 +0000 (17:27 +0200)]
InfixFunction: Reduce excessive parenthesis generation

7 years agoFix ORDER BY rendering
Adrien Bustany [Thu, 2 Dec 2010 11:19:02 +0000 (13:19 +0200)]
Fix ORDER BY rendering

7 years agoAdd some comments to explain "flatten" in patterngroup.cpp
Adrien Bustany [Wed, 1 Dec 2010 22:29:01 +0000 (00:29 +0200)]
Add some comments to explain "flatten" in patterngroup.cpp

7 years agoCodestyle: use references where possible in casts
Adrien Bustany [Wed, 1 Dec 2010 22:20:40 +0000 (00:20 +0200)]
Codestyle: use references where possible in casts

7 years agoLiteralValue: handle lists lists
Adrien Bustany [Mon, 29 Nov 2010 17:06:04 +0000 (19:06 +0200)]
LiteralValue: handle lists

7 years agoOptimization: Remove duplicate statements in a group
Adrien Bustany [Wed, 24 Nov 2010 21:29:44 +0000 (23:29 +0200)]
Optimization: Remove duplicate statements in a group

7 years agoLiteralValue: fix isValid
Adrien Bustany [Mon, 29 Nov 2010 16:19:08 +0000 (18:19 +0200)]
LiteralValue: fix isValid

Return true only for supported data types.

7 years agoHide InsertData and DeleteData from doc
Adrien Bustany [Wed, 24 Nov 2010 20:23:17 +0000 (22:23 +0200)]
Hide InsertData and DeleteData from doc

7 years agoFix license headers for tests
Adrien Bustany [Sun, 28 Nov 2010 13:48:28 +0000 (15:48 +0200)]
Fix license headers for tests

7 years agoFix wrong return value in FilterData::sparql()
Adrien Bustany [Sun, 28 Nov 2010 13:44:59 +0000 (15:44 +0200)]
Fix wrong return value in FilterData::sparql()

7 years agoFix license headers
Adrien Bustany [Sun, 28 Nov 2010 13:43:04 +0000 (15:43 +0200)]
Fix license headers

7 years agoChanges: Update .gitignore file
Mathias Hasselmann [Thu, 25 Nov 2010 00:17:09 +0000 (01:17 +0100)]
Changes: Update .gitignore file

RevBy: TrustMe

7 years agoNew: qmake project file for static builds
Mathias Hasselmann [Thu, 25 Nov 2010 00:14:04 +0000 (01:14 +0100)]
New: qmake project file for static builds

RevBy: TrustMe

7 years agoFix typo in Value doc
Adrien Bustany [Wed, 24 Nov 2010 19:23:05 +0000 (21:23 +0200)]
Fix typo in Value doc

7 years agoAdd Filter class back
Adrien Bustany [Wed, 24 Nov 2010 17:11:16 +0000 (19:11 +0200)]
Add Filter class back

This reverts commit 9bf8facbb8f1bf094d7572eb61ad55c817de4874.

7 years agoAdd operator== to more classes
Adrien Bustany [Wed, 24 Nov 2010 19:19:50 +0000 (21:19 +0200)]
Add operator== to more classes

7 years agoAdd TODO
Adrien Bustany [Wed, 24 Nov 2010 18:55:42 +0000 (20:55 +0200)]
Add TODO

7 years agoRevert "Add Filter class"
Adrien Bustany [Wed, 24 Nov 2010 17:04:09 +0000 (19:04 +0200)]
Revert "Add Filter class"

This reverts commit e970a67cd8b45ef762df1deb2392df67ae20096f.

7 years agoAdd Value::operator== and Value::type
Adrien Bustany [Wed, 24 Nov 2010 14:47:06 +0000 (16:47 +0200)]
Add Value::operator== and Value::type

7 years agoAdd Function::functionType()
Adrien Bustany [Wed, 24 Nov 2010 15:58:19 +0000 (17:58 +0200)]
Add Function::functionType()

7 years agoAdd Filter class
Adrien Bustany [Wed, 24 Nov 2010 15:45:43 +0000 (17:45 +0200)]
Add Filter class

7 years agoResourceValue: rename type() to resourceType()
Adrien Bustany [Wed, 24 Nov 2010 14:42:43 +0000 (16:42 +0200)]
ResourceValue: rename type() to resourceType()

7 years agoRemove dead code in PatternGroup
Adrien Bustany [Wed, 24 Nov 2010 09:15:06 +0000 (11:15 +0200)]
Remove dead code in PatternGroup

7 years agoChanges: Add gitignore file
Mathias Hasselmann [Wed, 24 Nov 2010 14:30:20 +0000 (15:30 +0100)]
Changes: Add gitignore file

RevBy: TrustMe

7 years agoIntroduce PredicateFunction
Adrien Bustany [Mon, 22 Nov 2010 12:58:49 +0000 (14:58 +0200)]
Introduce PredicateFunction

This new class is needed because PrefixFunction doesn't cut it when one
has to deal with the full url of the predicate.

7 years agoFix copy paste typos in PrefixFunction doc
Adrien Bustany [Mon, 22 Nov 2010 12:20:34 +0000 (14:20 +0200)]
Fix copy paste typos in PrefixFunction doc

7 years agoAdd support for blank nodes in queries
Adrien Bustany [Mon, 22 Nov 2010 11:51:25 +0000 (13:51 +0200)]
Add support for blank nodes in queries

7 years agoVariable: reset "auto" bit on setName
Adrien Bustany [Mon, 22 Nov 2010 11:31:19 +0000 (13:31 +0200)]
Variable: reset "auto" bit on setName

7 years agoAdd missing license header in cubi.h
Adrien Bustany [Mon, 22 Nov 2010 08:28:03 +0000 (10:28 +0200)]
Add missing license header in cubi.h

7 years agoWorkaround http://bugreports.qt.nokia.com/browse/QTBUG-9698
Adrien Bustany [Thu, 18 Nov 2010 15:19:55 +0000 (17:19 +0200)]
Workaround bugreports.qt.nokia.com/browse/QTBUG-9698

When rendering a UTC QDateTime in a ISO 8601 string, Qt does not append
the trailing Z. This commit works around this behaviour.

7 years agoFix typo in UpdateBase doc
Adrien Bustany [Mon, 15 Nov 2010 15:44:09 +0000 (17:44 +0200)]
Fix typo in UpdateBase doc

7 years agoProperly declare clone functions
Adrien Bustany [Mon, 15 Nov 2010 15:26:52 +0000 (17:26 +0200)]
Properly declare clone functions

7 years agoFix ut_select unit test
Adrien Bustany [Wed, 10 Nov 2010 13:47:21 +0000 (15:47 +0200)]
Fix ut_select unit test

7 years agoFix: Don't always add alias for function projections or subselects
Adrien Bustany [Wed, 10 Nov 2010 13:38:10 +0000 (15:38 +0200)]
Fix: Don't always add alias for function projections or subselects

7 years agoVariable: fix doc
Adrien Bustany [Wed, 10 Nov 2010 13:13:01 +0000 (15:13 +0200)]
Variable: fix doc

7 years agoInfixFunction: Allow arbitrary number of params
Adrien Bustany [Sun, 7 Nov 2010 17:10:30 +0000 (19:10 +0200)]
InfixFunction: Allow arbitrary number of params

7 years agoProperly quote DateTime in Sparql
Adrien Bustany [Fri, 5 Nov 2010 16:01:10 +0000 (18:01 +0200)]
Properly quote DateTime in Sparql

7 years agoPatternGroup: Fix sparql generation with empty groups
Adrien Bustany [Fri, 5 Nov 2010 12:21:25 +0000 (14:21 +0200)]
PatternGroup: Fix sparql generation with empty groups

When embedding nested empty PatternGroups in another group, PatternGroup
would produce a syntactically incorrect output (joining empty
statements).

7 years agoResourceValue: Add support for prefixed names
Adrien Bustany [Fri, 5 Nov 2010 10:40:56 +0000 (12:40 +0200)]
ResourceValue: Add support for prefixed names

7 years agoVariable: Remove _ prefix for auto-generated names
Adrien Bustany [Fri, 5 Nov 2010 08:56:27 +0000 (10:56 +0200)]
Variable: Remove _ prefix for auto-generated names

7 years agoVariable: Generate name when calling empty constructor
Adrien Bustany [Fri, 5 Nov 2010 08:44:29 +0000 (10:44 +0200)]
Variable: Generate name when calling empty constructor

7 years agoAdd empty constructor for Pattern
Adrien Bustany [Thu, 4 Nov 2010 13:50:06 +0000 (15:50 +0200)]
Add empty constructor for Pattern

7 years agoAdd PatternBase::isValid
Adrien Bustany [Thu, 4 Nov 2010 13:33:08 +0000 (15:33 +0200)]
Add PatternBase::isValid

7 years agoAdd PatternBase::isUnion
Adrien Bustany [Thu, 4 Nov 2010 13:01:34 +0000 (15:01 +0200)]
Add PatternBase::isUnion

7 years agoUnion: add Empty constructor
Adrien Bustany [Thu, 4 Nov 2010 12:56:13 +0000 (14:56 +0200)]
Union: add Empty constructor

7 years agoAdd ORDER BY in Select
Adrien Bustany [Wed, 3 Nov 2010 13:32:02 +0000 (15:32 +0200)]
Add ORDER BY in Select

7 years agoRemove leftover asserts from development
Adrien Bustany [Wed, 3 Nov 2010 13:31:21 +0000 (15:31 +0200)]
Remove leftover asserts from development

7 years agoAdd == operator to Value subclasses
Adrien Bustany [Tue, 2 Nov 2010 14:39:33 +0000 (16:39 +0200)]
Add == operator to Value subclasses

7 years agoHide more private classes from doc
Adrien Bustany [Tue, 2 Nov 2010 14:30:23 +0000 (16:30 +0200)]
Hide more private classes from doc

7 years agoFix shared data and move API to use values and not pointers
Adrien Bustany [Tue, 2 Nov 2010 14:27:30 +0000 (16:27 +0200)]
Fix shared data and move API to use values and not pointers

7 years agoPut all classes in the Cubi namespace
Adrien Bustany [Fri, 29 Oct 2010 10:05:22 +0000 (13:05 +0300)]
Put all classes in the Cubi namespace

7 years agoAdd global header that includes everything
Adrien Bustany [Fri, 29 Oct 2010 08:27:09 +0000 (11:27 +0300)]
Add global header that includes everything

7 years agoReinforce include guards
Adrien Bustany [Fri, 29 Oct 2010 08:18:16 +0000 (11:18 +0300)]
Reinforce include guards

7 years agoAdd missing doc file
Adrien Bustany [Fri, 29 Oct 2010 08:04:27 +0000 (11:04 +0300)]
Add missing doc file