Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Feature/w3c parser tests #65

Closed
wants to merge 744 commits into from
Closed

Feature/w3c parser tests #65

wants to merge 744 commits into from

Conversation

guitarmarx
Copy link

No description provided.

white-gecko and others added 30 commits May 6, 2015 15:15
Also remove getRealValueBasedOnDatatype from NodeUtils
Add Parser interface again, improve test setup and add new method for
string parsing to interface
…rld was not found

I guess if that function is not available, Redland was not installed.
So if you keep check for that function, you should know when its
available or not.
- add line between <?php and namespace declaration
- " to '
- ! to false ===
- add some comments with further information
- remove empty lines
It was assertTrue the result of the function, but it
does not return anything.
Given $graph must be of type NamedNode, not just Node.
Reason is, that we want a graph which is represented
by an URI, so we dont want Literals or AnyPattern given.

Drop createGraph and dropGraph from all store implementations,
because they basically call the query method. These 2
methods are now located in AbstractSparqlStore.php.
This commit also contains codesniffer fixes
Both HTTP and Virtuoso call statement related methods from
AbstractSparqlStore instead of implementing their own.

That means, much less code to maintain and better
compatibility.

AbstractSparqlStore:
- Pimp getMatchingStatements by set filters in WHERE
  clause for s, p or o, which is a literal or URI.
- Better graph handling in hasMatchingStatement

Virtuoso: Removed sqlQuery function, because it is not
needed anymore. It was before to get available graphs.
white-gecko and others added 24 commits June 30, 2015 01:22
That functions helps you to save code. It is useful in
cases where you have all the meta information about a
node (type, value, ...) but dont want to write that
switch to create the right node type, especially if you
want to use a NodeFactory too.

Tests also added.
Is related to testSerializeIteratorToStreamAsNQuads
test.
General:
- add countTriples function to count triples of a certain
graph

ARC2:
- add support for DELETE WHERE queries containing quads
- add support for SELECT COUNT queries. ARC2 adapter will
now handles such queries as every adapter too, not just
returning the number but to create a SetResult instance

ARC2Test:
- Skip testQueryAddAndQueryStatementsDefaultGraph
test, because ARC2 does not support write or read
operations to the default graph

AbstractTripleStoreTest:
- remove markTestSkipped from
testDeleteMultipleStatementsVariablePatterns.

HttpTest:
- mark test testQueryAddAndQueryStatementsDefaultGraph
skipped, because we do not know if the endpoint
supports write or read operations on the default graph

StoreAbstractTest:
- remove markTestSkipped from
testDeleteMatchingStatementsQuadRecognition
- fix a couple of tests (make it more precise, some
restructuring)
- remove markTestSkipped from
testQueryDeleteMultipleStatementsVariablePatterns;
improved that test overall
Because they were missed.

Added EmptyResultImplTest.php with basic tests.
And add isEmptyResult and isValueResult to
StatementSetResultImpl.php.
Replace assertIteratorContent by assertStatementIteratorEquals and
assertResultEquals
@k00ni
Copy link
Member

k00ni commented Jan 12, 2016

Thanks @guitarmarx for your contribution!

Info's

  • each Tests folder contains a manifest.tll which describes the contained tests
  • idea to parse manifest file:
    • split via explode function with use of <# (care about the file beginning)
  • each entry in manifest has rdf:type of either:
    • ... Eval
    • ...PositiveSyntax
    • ...NegativeSyntax
    • maybe more?

TODO for us

  • method providerTestData must be called for each format (adapt according folder too)
  • write own parser vs. re-use ARC2 or EasyRdf parser (in minimal version)

@k00ni k00ni self-assigned this Jan 12, 2016
@k00ni
Copy link
Member

k00ni commented Jan 12, 2016

Maybe related to #56

@k00ni
Copy link
Member

k00ni commented Aug 2, 2016

Shit, i think i accidentally closed this pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants