├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Makefile ├── README.md ├── build.xml ├── build ├── doc.erfurt.xml └── phpmd.xml ├── composer.json ├── composer.lock ├── debian ├── Makefile │ └── Makefile ├── changelog ├── compat ├── control ├── copyright ├── install ├── rules └── source │ └── format ├── library ├── Erfurt │ ├── Ac │ │ ├── Default.php │ │ ├── Exception.php │ │ ├── None.php │ │ └── Test.php │ ├── App.php │ ├── App │ │ └── Exception.php │ ├── Auth.php │ ├── Auth │ │ ├── Adapter │ │ │ ├── FoafSsl.php │ │ │ ├── None.php │ │ │ ├── OpenId.php │ │ │ └── Rdf.php │ │ ├── Identity.php │ │ └── Identity │ │ │ ├── Exception.php │ │ │ └── Recovery.php │ ├── Cache │ │ ├── Backend │ │ │ ├── Database.php │ │ │ ├── Null.php │ │ │ └── QueryCache │ │ │ │ ├── Backend.php │ │ │ │ ├── Database.php │ │ │ │ ├── Interface.php │ │ │ │ └── Null.php │ │ └── Frontend │ │ │ ├── ObjectCache.php │ │ │ └── QueryCache.php │ ├── Event.php │ ├── Event │ │ └── Dispatcher.php │ ├── Exception.php │ ├── Namespaces.php │ ├── Namespaces │ │ └── Exception.php │ ├── Owl │ │ ├── Class.php │ │ ├── Instance.php │ │ ├── Model.php │ │ └── Property.php │ ├── Ping.php │ ├── Plugin.php │ ├── Plugin │ │ └── Manager.php │ ├── Rdf │ │ ├── Literal.php │ │ ├── MemoryModel.php │ │ ├── Model.php │ │ ├── Node.php │ │ ├── Resource.php │ │ └── Resource │ │ │ └── Pool.php │ ├── Rdfs │ │ ├── Class.php │ │ ├── Instance.php │ │ ├── Model.php │ │ ├── Property.php │ │ └── Resource.php │ ├── Sparql │ │ ├── Constraint.php │ │ ├── EngineDb │ │ │ ├── Adapter │ │ │ │ └── EfZendDb.php │ │ │ ├── FilterGenerator.php │ │ │ ├── FilterGeneratorValue.php │ │ │ ├── Offsetter.php │ │ │ ├── QueryOptimizer.php │ │ │ ├── QuerySimplifier.php │ │ │ ├── ResultRenderer.php │ │ │ ├── ResultRenderer │ │ │ │ ├── Extended.php │ │ │ │ ├── Json.php │ │ │ │ ├── Plain.php │ │ │ │ └── Xml.php │ │ │ ├── SqlGenerator.php │ │ │ ├── SqlGenerator │ │ │ │ └── Adapter │ │ │ │ │ └── Ef.php │ │ │ ├── SqlGeneratorException.php │ │ │ ├── SqlMerger.php │ │ │ └── TypeSorter.php │ │ ├── GraphPattern.php │ │ ├── Parser.php │ │ ├── Parser │ │ │ ├── ErfurtParser.php │ │ │ ├── Interface.php │ │ │ ├── Sparql10.php │ │ │ ├── Sparql10 │ │ │ │ ├── Sparql10 │ │ │ │ │ ├── Sparql10.php │ │ │ │ │ └── Tokenizer.php │ │ │ │ ├── Sparql10Lexer.php │ │ │ │ └── Sparql10Parser.php │ │ │ ├── Sparql11 │ │ │ │ ├── Query │ │ │ │ │ ├── Sparql11query.php │ │ │ │ │ └── Tokenizer11.php │ │ │ │ ├── QueryLexer.php │ │ │ │ ├── QueryParser.php │ │ │ │ ├── Update │ │ │ │ │ ├── Sparql10.php │ │ │ │ │ ├── Sparql11update.php │ │ │ │ │ └── Tokenizer11.php │ │ │ │ ├── UpdateLexer.php │ │ │ │ └── UpdateParser.php │ │ │ ├── Sparql11query.php │ │ │ ├── Sparql11update.php │ │ │ └── Util │ │ │ │ └── CaseInsensitiveStream.php │ │ ├── ParserException.php │ │ ├── Query.php │ │ ├── Query2.php │ │ ├── Query2 │ │ │ ├── A.php │ │ │ ├── Abstraction.php │ │ │ ├── Abstraction │ │ │ │ ├── ClassNode.php │ │ │ │ ├── Link.php │ │ │ │ ├── RDFSClass.php │ │ │ │ └── Utils.php │ │ │ ├── BlankNode.php │ │ │ ├── BlankNodePropertyList.php │ │ │ ├── BooleanLiteral.php │ │ │ ├── Collection.php │ │ │ ├── Constraint.php │ │ │ ├── ConstructTemplate.php │ │ │ ├── ContainerHelper.php │ │ │ ├── ElementHelper.php │ │ │ ├── Filter.php │ │ │ ├── GraphClause.php │ │ │ ├── GraphGraphPattern.php │ │ │ ├── GroupGraphPattern.php │ │ │ ├── GroupOrUnionGraphPattern.php │ │ │ ├── IriRef.php │ │ │ ├── Nil.php │ │ │ ├── NumericLiteral.php │ │ │ ├── ObjectList.php │ │ │ ├── OptionalGraphPattern.php │ │ │ ├── OrderClause.php │ │ │ ├── Prefix.php │ │ │ ├── PropertyList.php │ │ │ ├── RDFLiteral.php │ │ │ ├── Triple.php │ │ │ ├── TriplesSameSubject.php │ │ │ ├── Var.php │ │ │ └── structural-Interfaces.php │ │ ├── QueryResultVariable.php │ │ ├── QueryTriple.php │ │ ├── SimpleQuery.php │ │ └── Variable.php │ ├── Store.php │ ├── Store │ │ ├── Adapter │ │ │ ├── Comparer.php │ │ │ ├── EfZendDb.php │ │ │ ├── Exception.php │ │ │ ├── Interface.php │ │ │ ├── Memory.php │ │ │ ├── Mssql.php │ │ │ ├── Multistore.php │ │ │ ├── OntoWiki.php │ │ │ ├── Sparql.php │ │ │ ├── Stardog.php │ │ │ ├── Stardog │ │ │ │ └── ApiClient.php │ │ │ ├── Test.php │ │ │ ├── Virtuoso.php │ │ │ └── Virtuoso │ │ │ │ ├── ResultConverter │ │ │ │ ├── CSV.php │ │ │ │ ├── Exception.php │ │ │ │ ├── Extended.php │ │ │ │ ├── Json.php │ │ │ │ ├── SparqlResultsXml.php │ │ │ │ └── XmlTemplate.pxml │ │ │ │ └── XmlConverter.php │ │ ├── Exception.php │ │ └── Sql │ │ │ └── Interface.php │ ├── Syntax │ │ ├── RdfParser.php │ │ ├── RdfParser │ │ │ └── Adapter │ │ │ │ ├── Base.php │ │ │ │ ├── Interface.php │ │ │ │ ├── RdfJson.php │ │ │ │ ├── RdfXml.php │ │ │ │ ├── RdfXml │ │ │ │ ├── NodeElement.php │ │ │ │ └── PropertyElement.php │ │ │ │ └── Turtle.php │ │ ├── RdfParserException.php │ │ ├── RdfSerializer.php │ │ ├── RdfSerializer │ │ │ └── Adapter │ │ │ │ ├── Interface.php │ │ │ │ ├── NTriples.php │ │ │ │ ├── RdfJson.php │ │ │ │ ├── RdfXml.php │ │ │ │ ├── RdfXml │ │ │ │ ├── RdfWriter.php │ │ │ │ └── StringWriterXml.php │ │ │ │ └── Turtle.php │ │ ├── RdfSerializerException.php │ │ └── Utils │ │ │ └── Turtle.php │ ├── Uri.php │ ├── Uri │ │ └── Exception.php │ ├── Utils.php │ ├── Versioning.php │ ├── Worker │ │ ├── Backend.php │ │ ├── Exception.php │ │ ├── Frontend.php │ │ ├── Job │ │ │ ├── Abstract.php │ │ │ └── Container.php │ │ ├── Registry.php │ │ └── TestJob.php │ ├── Wrapper.php │ ├── Wrapper │ │ ├── Exception.php │ │ ├── LinkeddataWrapper.php │ │ ├── Manager.php │ │ ├── RdfaWrapper.php │ │ ├── Registry.php │ │ └── Test.php │ ├── config.ini-dist-multistore │ ├── config.ini-dist-mysql │ ├── config.ini-dist-stardog │ ├── config.ini-dist-virtuoso │ ├── config │ │ └── default.ini │ └── include │ │ ├── SysOnt.ttl │ │ ├── SysOntLocal.ttl │ │ └── vocabulary.php └── antlr │ └── Php │ ├── ANTLRFileStream.php │ ├── ANTLRStringStream.php │ ├── BaseRecognizer.php │ ├── CharStream.php │ ├── CharStreamState.php │ ├── CommonToken.php │ ├── CommonTokenStream.php │ ├── DFA.php │ ├── EarlyExitException.php │ ├── FailedPredicateException.php │ ├── IntStream.php │ ├── Lexer.php │ ├── MismatchedRangeException.php │ ├── MismatchedSetException.php │ ├── MismatchedTokenException.php │ ├── MissingTokenException.php │ ├── NoViableAltException.php │ ├── Parser.php │ ├── ParserRuleReturnScope.php │ ├── RecognitionException.php │ ├── RecognizerSharedState.php │ ├── RuleReturnScope.php │ ├── Set.php │ ├── Token.php │ ├── TokenStream.php │ ├── UnwantedTokenException.php │ ├── antlr.php │ └── util.php ├── phpcs.xml ├── phpunit.xml └── tests ├── Bootstrap.php ├── CodeSniffer ├── Standards │ └── Erfurt │ │ ├── Sniffs │ │ ├── Commenting │ │ │ └── FileCommentSniff.php │ │ ├── Functions │ │ │ ├── ForbiddenFunctionsSniff.php │ │ │ └── FunctionCallArgumentSpacingSniff.php │ │ └── PHP │ │ │ └── GetRequestDataSniff.php │ │ └── ruleset.xml ├── config ├── cs-scripts.sh └── pre-commit ├── README ├── config.ini.dist ├── config.ini.dist.travis ├── integration ├── Erfurt │ ├── AppIntegrationTest.php │ ├── Auth │ │ └── Adapter │ │ │ └── RdfIntegrationTest.php │ ├── Cache │ │ └── Backend │ │ │ └── QueryCache │ │ │ └── DatabaseTest.php │ ├── Rdf │ │ ├── ModelIntegrationTest.php │ │ └── ResourceIntegrationTest.php │ ├── Sparql │ │ ├── EngineDb │ │ │ └── ResultRenderer │ │ │ │ └── ExtendedIntegrationTest.php │ │ ├── EngineDbIntegrationTest.php │ │ └── _files │ │ │ ├── fmi-s10.rdf │ │ │ └── fmi.rdf │ ├── Store │ │ └── Adapter │ │ │ ├── CompareIntegrationTestDisabled.php │ │ │ ├── EfZendDbIntegrationTest.php │ │ │ ├── SparqlIntegrationTest.php │ │ │ ├── StardogIntegrationTest.php │ │ │ ├── VirtuosoIntegrationTest.php │ │ │ └── _files │ │ │ └── data │ │ │ └── sparqlDBpediaLeipzig.srx │ ├── StoreIntegrationTest.php │ ├── Syntax │ │ ├── RdfSerializer │ │ │ └── Adapter │ │ │ │ └── RdfJsonIntegrationTest.php │ │ └── RdfSerializerIntegrationTest.php │ ├── TestHelper │ │ └── Http │ │ │ └── ClientAdapter.php │ └── _files │ │ ├── Automobile.xml │ │ ├── Grieg_Hall.xml │ │ ├── Machine_learning.xml │ │ └── musicontology.rdfs └── phpunit.xml.dist ├── scripts ├── queries │ ├── 1-title-sameAs │ └── 2-title-IN ├── querybench.php └── travis │ ├── README.md │ ├── install-extensions.sh │ ├── install-services.sh │ └── virtuoso-sparql-permission.sql └── unit ├── Erfurt ├── AppTest.php ├── Auth │ └── Adapter │ │ ├── OpenIdTest.php │ │ └── RdfTest.php ├── NamespacesTest.php ├── Owl │ └── ModelTest.php ├── PingTest.php ├── Rdf │ ├── LiteralTest.php │ ├── MemoryModelTest.php │ ├── ModelStub.php │ ├── ModelTest.php │ ├── ResourceTest.php │ └── StoreStub.php ├── Sparql │ ├── ParserTest.php │ ├── Query2 │ │ ├── ContainerHelperTest.php │ │ ├── ElementHelperTest.php │ │ ├── GroupGraphPatternTest.php │ │ ├── IriRefTest.php │ │ ├── RDFLiteralTest.php │ │ ├── TripleTest.php │ │ └── VarTest.php │ ├── Query2Test.php │ ├── SimpleQueryTest.php │ ├── _cache │ │ └── .gitignore │ └── _files │ │ ├── erfurt │ │ ├── ef_ac1.rq │ │ ├── ef_ac2.rq │ │ ├── ef_auth1.rq │ │ ├── ef_resource1.rq │ │ ├── ef_serializer1.rq │ │ ├── ef_serializer2.rq │ │ ├── ef_store1.rq │ │ └── manifest.ttl │ │ ├── ontowiki │ │ ├── manifest.ttl │ │ ├── ow_ext_community1.rq │ │ ├── ow_ext_linkinghere1.rq │ │ ├── ow_ext_linkinghere2.rq │ │ ├── ow_ext_map1.rq │ │ ├── ow_ext_map2.rq │ │ ├── ow_ext_properties1.rq │ │ ├── ow_ext_showproperties1.rq │ │ ├── ow_ext_similarinstances1.rq │ │ ├── ow_ext_similarinstances2.rq │ │ ├── ow_ext_usage1.rq │ │ ├── ow_ext_usage2.rq │ │ ├── ow_hierarchy.rq │ │ ├── ow_resource1.rq │ │ ├── ow_resourcelist1.rq │ │ └── ow_resourcelist2.rq │ │ ├── rap │ │ ├── LimitOff_1.rq │ │ ├── LimitOff_2.rq │ │ ├── LimitOff_3.rq │ │ ├── ask-01.rq │ │ ├── ask-02.rq │ │ ├── bound1.rq │ │ ├── count-01.rq │ │ ├── count-02.rq │ │ ├── customUnion1.rq │ │ ├── customUnion2.rq │ │ ├── dawg-query-001.rq │ │ ├── dawg-query-002.rq │ │ ├── dawg-query-003.rq │ │ ├── dawg-query-004.rq │ │ ├── dawg-tp-01.rq │ │ ├── dawg-tp-02.rq │ │ ├── dawg-tp-03.rq │ │ ├── dawg-tp-04.rq │ │ ├── ex11.2.3.1_0.rq │ │ ├── ex11.2.3.1_1.rq │ │ ├── ex11.2.3.2_0.rq │ │ ├── ex11.2.3.2_1.rq │ │ ├── ex11.2.3.3_0.rq │ │ ├── ex11.2.3.4_0.rq │ │ ├── ex11.2.3.5_0.rq │ │ ├── ex11.2.3.6_0.rq │ │ ├── ex11.2.3.7_0.rq │ │ ├── ex11_0.rq │ │ ├── ex11_1.rq │ │ ├── ex2-1a.rq │ │ ├── ex2-2a.rq │ │ ├── ex2-3a.rq │ │ ├── ex2-4a.rq │ │ ├── ex3.rq │ │ ├── expr-1.rq │ │ ├── expr-2.rq │ │ ├── expr-3.rq │ │ ├── graphset1.rq │ │ ├── graphset2.rq │ │ ├── graphset3.rq │ │ ├── graphset4.rq │ │ ├── manifest.ttl │ │ ├── q-base-prefix-1.rq │ │ ├── q-base-prefix-2.rq │ │ ├── q-base-prefix-3.rq │ │ ├── q-base-prefix-4.rq │ │ ├── q-base-prefix-5.rq │ │ ├── q-blank-1.rq │ │ ├── q-construct-1.rq │ │ ├── q-construct-2.rq │ │ ├── q-datatype-1.rq │ │ ├── q-langMatches-1.rq │ │ ├── q-langMatches-2.rq │ │ ├── q-langMatches-3.rq │ │ ├── q-langMatches-4.rq │ │ ├── q-opt-1.rq │ │ ├── q-opt-2.rq │ │ ├── q-reif-1.rq │ │ ├── q-reif-2.rq │ │ ├── q-select-1.rq │ │ ├── q-select-2.rq │ │ ├── q-select-3.rq │ │ ├── q-str-1.rq │ │ ├── q-str-2.rq │ │ ├── q-str-3.rq │ │ ├── q-str-4.rq │ │ ├── q-uri-1.rq │ │ ├── query-01.rq │ │ ├── query-bev-1.rq │ │ ├── query-bev-2.rq │ │ ├── query-bev-3.rq │ │ ├── query-bev-4.rq │ │ ├── query-bev-5.rq │ │ ├── query-bev-6.rq │ │ ├── query-eq-1.rq │ │ ├── query-eq-2.rq │ │ ├── query-eq-3.rq │ │ ├── query-eq-4.rq │ │ ├── query-eq-5.rq │ │ ├── query-eq-graph-1.rq │ │ ├── query-eq-graph-2.rq │ │ ├── query-eq-graph-3.rq │ │ ├── query-eq-graph-4.rq │ │ ├── query-eq2-1.rq │ │ ├── query-sort-1.rq │ │ ├── query-sort-2.rq │ │ ├── query-sort-3.rq │ │ ├── query-sort-4.rq │ │ ├── query-sort-5.rq │ │ ├── query-sort-6.rq │ │ ├── query-sort-datetime.rq │ │ ├── query-survey-1.rq │ │ ├── regex-query-001.rq │ │ ├── regex-query-002.rq │ │ ├── regex-query-003.rq │ │ ├── test-0-01.rq │ │ ├── test-0-02.rq │ │ ├── test-0-03.rq │ │ ├── test-0-04.rq │ │ ├── test-1-01.rq │ │ ├── test-1-02.rq │ │ ├── test-1-03.rq │ │ ├── test-1-04.rq │ │ ├── test-1-05.rq │ │ ├── test-1-06.rq │ │ ├── test-1-07.rq │ │ ├── test-1-08.rq │ │ ├── test-1-09.rq │ │ ├── test-1-10.rq │ │ ├── test-2-01.rq │ │ ├── test-2-02.rq │ │ ├── test-2-03.rq │ │ ├── test-2-04.rq │ │ ├── test-2-05.rq │ │ ├── test-2-06.rq │ │ ├── test-2-07.rq │ │ ├── test-2-08.rq │ │ ├── test-2-09.rq │ │ ├── test-2-10.rq │ │ ├── test-3-01.rq │ │ ├── test-3-02.rq │ │ ├── test-3-03.rq │ │ ├── test-3-04.rq │ │ ├── test-3-05.rq │ │ ├── test-3-06.rq │ │ ├── test-3-07.rq │ │ ├── test-4-01.rq │ │ ├── test-4-02.rq │ │ ├── test-4-03.rq │ │ ├── test-4-04.rq │ │ ├── test-4-05.rq │ │ ├── test-4-06.rq │ │ ├── test-4-07.rq │ │ ├── test-5-01.rq │ │ ├── test-5-02.rq │ │ ├── test-5-03.rq │ │ ├── test-5-04.rq │ │ ├── test-6-01.rq │ │ ├── test-6-02.rq │ │ ├── test-6-03.rq │ │ ├── test-6-04.rq │ │ ├── test-7-01.rq │ │ ├── test-7-02.rq │ │ ├── test-7-03.rq │ │ ├── test-7-04.rq │ │ ├── test-9-01.rq │ │ ├── test-9-02.rq │ │ ├── test-B-01.rq │ │ ├── test-B-02.rq │ │ ├── test-B-03.rq │ │ ├── test-B-04.rq │ │ ├── test-B-05.rq │ │ ├── test-B-06.rq │ │ ├── test-B-07.rq │ │ ├── test-B-08.rq │ │ ├── test-B-09.rq │ │ ├── test-B-10.rq │ │ ├── test-B-11.rq │ │ ├── test-B-12.rq │ │ ├── test-B-13.rq │ │ ├── test-B-15.rq │ │ ├── test-B-16.rq │ │ ├── test-B-17.rq │ │ ├── test-B-18.rq │ │ ├── test-B-19.rq │ │ └── test-B-20.rq │ │ └── w3c-dawg2 │ │ └── data-r2 │ │ ├── LICENSE │ │ ├── README │ │ ├── algebra-expressions.txt │ │ ├── algebra │ │ ├── data-1.ttl │ │ ├── data-2.ttl │ │ ├── filter-nested-1.rq │ │ ├── filter-nested-1.srx │ │ ├── filter-nested-2.rq │ │ ├── filter-nested-2.srx │ │ ├── filter-placement-1.rq │ │ ├── filter-placement-1.srx │ │ ├── filter-placement-2.rq │ │ ├── filter-placement-2.srx │ │ ├── filter-placement-3.rq │ │ ├── filter-placement-3.srx │ │ ├── filter-scope-1.rq │ │ ├── filter-scope-1.srx │ │ ├── join-combo-1.rq │ │ ├── join-combo-1.srx │ │ ├── join-combo-2.rq │ │ ├── join-combo-2.srx │ │ ├── join-combo-graph-1.ttl │ │ ├── join-combo-graph-2.ttl │ │ ├── manifest.ttl │ │ ├── opt-filter-1.rq │ │ ├── opt-filter-1.srx │ │ ├── opt-filter-1.ttl │ │ ├── opt-filter-2.rq │ │ ├── opt-filter-2.srx │ │ ├── opt-filter-2.ttl │ │ ├── opt-filter-3.rq │ │ ├── opt-filter-3.srx │ │ ├── opt-filter-3.ttl │ │ ├── two-nested-opt-alt.rq │ │ ├── two-nested-opt-alt.srx │ │ ├── two-nested-opt.rq │ │ ├── two-nested-opt.srx │ │ ├── two-nested-opt.ttl │ │ ├── var-scope-join-1.rq │ │ ├── var-scope-join-1.srx │ │ └── var-scope-join-1.ttl │ │ ├── ask │ │ ├── ask-1.rq │ │ ├── ask-1.srx │ │ ├── ask-4.rq │ │ ├── ask-4.srx │ │ ├── ask-7.rq │ │ ├── ask-7.srx │ │ ├── ask-8.rq │ │ ├── ask-8.srx │ │ ├── data.ttl │ │ └── manifest.ttl │ │ ├── basic │ │ ├── base-prefix-1.rq │ │ ├── base-prefix-1.srx │ │ ├── base-prefix-2.rq │ │ ├── base-prefix-2.srx │ │ ├── base-prefix-3.rq │ │ ├── base-prefix-3.srx │ │ ├── base-prefix-4.rq │ │ ├── base-prefix-4.srx │ │ ├── base-prefix-5.rq │ │ ├── base-prefix-5.srx │ │ ├── bgp-no-match.rq │ │ ├── bgp-no-match.srx │ │ ├── data-1.ttl │ │ ├── data-2.ttl │ │ ├── data-3.ttl │ │ ├── data-4.ttl │ │ ├── data-5.ttl │ │ ├── data-6.ttl │ │ ├── data-7.ttl │ │ ├── list-1.rq │ │ ├── list-1.srx │ │ ├── list-2.rq │ │ ├── list-2.srx │ │ ├── list-3.rq │ │ ├── list-3.srx │ │ ├── list-4.rq │ │ ├── list-4.srx │ │ ├── manifest.ttl │ │ ├── prefix-name-1.rq │ │ ├── prefix-name-1.srx │ │ ├── quotes-1.rq │ │ ├── quotes-1.srx │ │ ├── quotes-2.rq │ │ ├── quotes-2.srx │ │ ├── quotes-3.rq │ │ ├── quotes-3.srx │ │ ├── quotes-4.rq │ │ ├── quotes-4.srx │ │ ├── spoo-1.rq │ │ ├── spoo-1.srx │ │ ├── term-1.rq │ │ ├── term-1.srx │ │ ├── term-2.rq │ │ ├── term-2.srx │ │ ├── term-3.rq │ │ ├── term-3.srx │ │ ├── term-4.rq │ │ ├── term-4.srx │ │ ├── term-5.rq │ │ ├── term-5.srx │ │ ├── term-6.rq │ │ ├── term-6.srx │ │ ├── term-7.rq │ │ ├── term-7.srx │ │ ├── term-8.rq │ │ ├── term-8.srx │ │ ├── term-9.rq │ │ ├── term-9.srx │ │ ├── var-1.rq │ │ ├── var-1.srx │ │ ├── var-2.rq │ │ └── var-2.srx │ │ ├── bnode-coreference │ │ ├── data.ttl │ │ ├── manifest.ttl │ │ ├── query.rq │ │ └── result.ttl │ │ ├── boolean-effective-value │ │ ├── data-1.ttl │ │ ├── data-2.ttl │ │ ├── manifest.ttl │ │ ├── query-bev-1.rq │ │ ├── query-bev-2.rq │ │ ├── query-bev-3.rq │ │ ├── query-bev-4.rq │ │ ├── query-bev-5.rq │ │ ├── query-bev-6.rq │ │ ├── query-boolean-literal.rq │ │ ├── result-bev-1.ttl │ │ ├── result-bev-2.ttl │ │ ├── result-bev-3.ttl │ │ ├── result-bev-4.ttl │ │ ├── result-bev-5.ttl │ │ ├── result-bev-6.ttl │ │ └── result-boolean-literal.ttl │ │ ├── bound │ │ ├── bound1-result.ttl │ │ ├── bound1.rq │ │ ├── data.ttl │ │ └── manifest.ttl │ │ ├── cast │ │ ├── cast-bool.rq │ │ ├── cast-bool.srx │ │ ├── cast-dT.rq │ │ ├── cast-dT.srx │ │ ├── cast-dbl.rq │ │ ├── cast-dbl.srx │ │ ├── cast-dec.rq │ │ ├── cast-dec.srx │ │ ├── cast-flt.rq │ │ ├── cast-flt.srx │ │ ├── cast-int.rq │ │ ├── cast-int.srx │ │ ├── cast-str.rq │ │ ├── cast-str.srx │ │ ├── data.ttl │ │ └── manifest.ttl │ │ ├── construct │ │ ├── data-ident.ttl │ │ ├── data-opt.ttl │ │ ├── data-reif.ttl │ │ ├── manifest.ttl │ │ ├── query-construct-optional.rq │ │ ├── query-ident.rq │ │ ├── query-reif-1.rq │ │ ├── query-reif-2.rq │ │ ├── query-subgraph.rq │ │ ├── result-construct-optional.ttl │ │ ├── result-ident.ttl │ │ ├── result-reif.ttl │ │ └── result-subgraph.ttl │ │ ├── dataset │ │ ├── data-g1-dup.ttl │ │ ├── data-g1.ttl │ │ ├── data-g2-dup.ttl │ │ ├── data-g2.ttl │ │ ├── data-g3-dup.ttl │ │ ├── data-g3.ttl │ │ ├── data-g4-dup.ttl │ │ ├── data-g4.ttl │ │ ├── dataset-01.rq │ │ ├── dataset-01.ttl │ │ ├── dataset-02.rq │ │ ├── dataset-02.ttl │ │ ├── dataset-03.rq │ │ ├── dataset-03.ttl │ │ ├── dataset-04.rq │ │ ├── dataset-04.ttl │ │ ├── dataset-05.rq │ │ ├── dataset-05.ttl │ │ ├── dataset-06.rq │ │ ├── dataset-06.ttl │ │ ├── dataset-07.rq │ │ ├── dataset-07.ttl │ │ ├── dataset-08.rq │ │ ├── dataset-08.ttl │ │ ├── dataset-09.rq │ │ ├── dataset-09.ttl │ │ ├── dataset-09b.rq │ │ ├── dataset-10.rq │ │ ├── dataset-10.ttl │ │ ├── dataset-10b.rq │ │ ├── dataset-11.rq │ │ ├── dataset-11.ttl │ │ ├── dataset-12.rq │ │ ├── dataset-12.ttl │ │ ├── dataset-12b.rq │ │ └── manifest.ttl │ │ ├── distinct │ │ ├── data-all.ttl │ │ ├── data-node.ttl │ │ ├── data-num.ttl │ │ ├── data-opt.ttl │ │ ├── data-star.ttl │ │ ├── data-str.ttl │ │ ├── distinct-1-results.srx │ │ ├── distinct-1.rq │ │ ├── distinct-2.rq │ │ ├── distinct-all.srx │ │ ├── distinct-node.srx │ │ ├── distinct-num.srx │ │ ├── distinct-opt.srx │ │ ├── distinct-star-1.rq │ │ ├── distinct-star-1.srx │ │ ├── distinct-str.srx │ │ ├── manifest.ttl │ │ ├── no-distinct-1.rq │ │ ├── no-distinct-2.rq │ │ ├── no-distinct-all.srx │ │ ├── no-distinct-node.srx │ │ ├── no-distinct-num.srx │ │ ├── no-distinct-opt.srx │ │ └── no-distinct-str.srx │ │ ├── expr-builtin │ │ ├── data-builtin-1.ttl │ │ ├── data-builtin-2.ttl │ │ ├── data-langMatches-de.ttl │ │ ├── data-langMatches.ttl │ │ ├── lang-case-insensitive-eq.srx │ │ ├── lang-case-insensitive-ne.srx │ │ ├── lang-case-sensitivity-eq.rq │ │ ├── lang-case-sensitivity-ne.rq │ │ ├── lang-case-sensitivity.ttl │ │ ├── manifest.ttl │ │ ├── q-blank-1.rq │ │ ├── q-datatype-1.rq │ │ ├── q-datatype-2.rq │ │ ├── q-datatype-3.rq │ │ ├── q-iri-1.rq │ │ ├── q-isliteral-1.rq │ │ ├── q-lang-1.rq │ │ ├── q-lang-2.rq │ │ ├── q-lang-3.rq │ │ ├── q-langMatches-1.rq │ │ ├── q-langMatches-2.rq │ │ ├── q-langMatches-3.rq │ │ ├── q-langMatches-4.rq │ │ ├── q-langMatches-de-de.rq │ │ ├── q-str-1.rq │ │ ├── q-str-2.rq │ │ ├── q-str-3.rq │ │ ├── q-str-4.rq │ │ ├── q-uri-1.rq │ │ ├── result-blank-1.ttl │ │ ├── result-datatype-1.ttl │ │ ├── result-datatype-2.srx │ │ ├── result-datatype-3.srx │ │ ├── result-iri-1.ttl │ │ ├── result-isliteral-1.ttl │ │ ├── result-lang-1.srx │ │ ├── result-lang-2.srx │ │ ├── result-lang-3.srx │ │ ├── result-langMatches-1.ttl │ │ ├── result-langMatches-2.ttl │ │ ├── result-langMatches-3.ttl │ │ ├── result-langMatches-4.ttl │ │ ├── result-langMatches-de.ttl │ │ ├── result-sameTerm-eq.ttl │ │ ├── result-sameTerm-not-eq.ttl │ │ ├── result-sameTerm.ttl │ │ ├── result-str-1.ttl │ │ ├── result-str-2.ttl │ │ ├── result-str-3.ttl │ │ ├── result-str-4.ttl │ │ ├── result-uri-1.ttl │ │ ├── sameTerm-eq.rq │ │ ├── sameTerm-not-eq.rq │ │ └── sameTerm.rq │ │ ├── expr-equals │ │ ├── data-eq.ttl │ │ ├── manifest.ttl │ │ ├── query-eq-1.rq │ │ ├── query-eq-2.rq │ │ ├── query-eq-3.rq │ │ ├── query-eq-4.rq │ │ ├── query-eq-5.rq │ │ ├── query-eq-graph-1.rq │ │ ├── query-eq-graph-2.rq │ │ ├── query-eq-graph-3.rq │ │ ├── query-eq-graph-4.rq │ │ ├── query-eq-graph-5.rq │ │ ├── query-eq2-1.rq │ │ ├── query-eq2-2.rq │ │ ├── query-eq2-graph-1.rq │ │ ├── result-eq-1.ttl │ │ ├── result-eq-2.ttl │ │ ├── result-eq-3.ttl │ │ ├── result-eq-4.ttl │ │ ├── result-eq-5.ttl │ │ ├── result-eq-graph-1.ttl │ │ ├── result-eq-graph-2.ttl │ │ ├── result-eq-graph-3.ttl │ │ ├── result-eq-graph-4.ttl │ │ ├── result-eq-graph-5.ttl │ │ ├── result-eq2-1.ttl │ │ ├── result-eq2-2.ttl │ │ └── result-eq2-graph-1.ttl │ │ ├── expr-ops │ │ ├── data.ttl │ │ ├── manifest.ttl │ │ ├── query-ge-1.rq │ │ ├── query-le-1.rq │ │ ├── query-minus-1.rq │ │ ├── query-mul-1.rq │ │ ├── query-plus-1.rq │ │ ├── query-unminus-1.rq │ │ ├── query-unplus-1.rq │ │ ├── result-ge-1.srx │ │ ├── result-le-1.srx │ │ ├── result-minus-1.srx │ │ ├── result-mul-1.srx │ │ ├── result-plus-1.srx │ │ ├── result-unminus-1.srx │ │ └── result-unplus-1.srx │ │ ├── extended-manifest-evaluation.ttl │ │ ├── files-to-fix │ │ ├── foo │ │ ├── graph │ │ ├── data-g1.ttl │ │ ├── data-g2.ttl │ │ ├── data-g3-dup.ttl │ │ ├── data-g3.ttl │ │ ├── data-g4.ttl │ │ ├── graph-01.rq │ │ ├── graph-01.ttl │ │ ├── graph-02.rq │ │ ├── graph-02.ttl │ │ ├── graph-03.rq │ │ ├── graph-03.ttl │ │ ├── graph-04.rq │ │ ├── graph-04.ttl │ │ ├── graph-05.rq │ │ ├── graph-05.ttl │ │ ├── graph-06.rq │ │ ├── graph-06.ttl │ │ ├── graph-07.rq │ │ ├── graph-07.ttl │ │ ├── graph-08.rq │ │ ├── graph-08.ttl │ │ ├── graph-09.rq │ │ ├── graph-09.ttl │ │ ├── graph-10.rq │ │ ├── graph-10.ttl │ │ ├── graph-11.rq │ │ ├── graph-11.ttl │ │ └── manifest.ttl │ │ ├── i18n │ │ ├── kanji-01-results.ttl │ │ ├── kanji-01.rq │ │ ├── kanji-02-results.ttl │ │ ├── kanji-02.rq │ │ ├── kanji.ttl │ │ ├── manifest.ttl │ │ ├── normalization-01-results.ttl │ │ ├── normalization-01.rq │ │ ├── normalization-01.ttl │ │ ├── normalization-02-results.ttl │ │ ├── normalization-02.rq │ │ ├── normalization-02.ttl │ │ ├── normalization-03-results.ttl │ │ ├── normalization-03.rq │ │ └── normalization-03.ttl │ │ ├── manifest-evaluation.ttl │ │ ├── manifest-syntax.ttl │ │ ├── open-world │ │ ├── data-1.ttl │ │ ├── data-2.ttl │ │ ├── data-3.ttl │ │ ├── data-4.ttl │ │ ├── date-1-result.srx │ │ ├── date-1.rq │ │ ├── date-2-result.srx │ │ ├── date-2.rq │ │ ├── date-3-result.srx │ │ ├── date-3.rq │ │ ├── date-4-result.srx │ │ ├── date-4.rq │ │ ├── manifest.ttl │ │ ├── open-cmp-01-result.srx │ │ ├── open-cmp-01.rq │ │ ├── open-cmp-02-result.srx │ │ ├── open-cmp-02.rq │ │ ├── open-eq-01-result.srx │ │ ├── open-eq-01.rq │ │ ├── open-eq-02-result.srx │ │ ├── open-eq-02.rq │ │ ├── open-eq-03-result.srx │ │ ├── open-eq-03.rq │ │ ├── open-eq-04-result.srx │ │ ├── open-eq-04.rq │ │ ├── open-eq-05-result.srx │ │ ├── open-eq-05.rq │ │ ├── open-eq-06-result.srx │ │ ├── open-eq-06.rq │ │ ├── open-eq-07-result.srx │ │ ├── open-eq-07.rq │ │ ├── open-eq-08-result.srx │ │ ├── open-eq-08.rq │ │ ├── open-eq-09-result.srx │ │ ├── open-eq-09.rq │ │ ├── open-eq-10-result.srx │ │ ├── open-eq-10.rq │ │ ├── open-eq-11-result.srx │ │ ├── open-eq-11.rq │ │ ├── open-eq-12-result.srx │ │ ├── open-eq-12.rq │ │ ├── sameTerm-StringSimpleLiteralCmp.srx │ │ ├── sameTerm-eq-StringSimpleLiteralCmp.srx │ │ ├── sameTerm-eq.srx │ │ ├── sameTerm-manifest.ttl │ │ ├── sameTerm-not-eq-StringSimpleLiteralCmp.srx │ │ ├── sameTerm-not-eq.srx │ │ ├── sameTerm.srx │ │ └── sameTerm.ttl │ │ ├── optional-filter │ │ ├── data-1.ttl │ │ ├── expr-1-result.ttl │ │ ├── expr-1.rq │ │ ├── expr-2-result.ttl │ │ ├── expr-2.rq │ │ ├── expr-3-result.ttl │ │ ├── expr-3.rq │ │ ├── expr-4-result.ttl │ │ ├── expr-4.rq │ │ ├── expr-5-result-not-simplified.ttl │ │ ├── expr-5-result-simplified.ttl │ │ ├── expr-5.rq │ │ └── manifest.ttl │ │ ├── optional │ │ ├── complex-data-1.ttl │ │ ├── complex-data-2.ttl │ │ ├── data.ttl │ │ ├── manifest.ttl │ │ ├── q-opt-1.rq │ │ ├── q-opt-2.rq │ │ ├── q-opt-3.rq │ │ ├── q-opt-complex-1.rq │ │ ├── q-opt-complex-2.rq │ │ ├── q-opt-complex-3.rq │ │ ├── q-opt-complex-4.rq │ │ ├── result-opt-1.ttl │ │ ├── result-opt-2.ttl │ │ ├── result-opt-3.ttl │ │ ├── result-opt-complex-1.ttl │ │ ├── result-opt-complex-2.ttl │ │ ├── result-opt-complex-3.ttl │ │ └── result-opt-complex-4.ttl │ │ ├── reduced │ │ ├── manifest.ttl │ │ ├── reduced-1.rq │ │ ├── reduced-1.srx │ │ ├── reduced-2.rq │ │ ├── reduced-2.srx │ │ ├── reduced-star.ttl │ │ └── reduced-str.ttl │ │ ├── regex │ │ ├── manifest.ttl │ │ ├── regex-data-01.ttl │ │ ├── regex-query-001.rq │ │ ├── regex-query-002.rq │ │ ├── regex-query-003.rq │ │ ├── regex-query-004.rq │ │ ├── regex-result-001.ttl │ │ ├── regex-result-002.ttl │ │ ├── regex-result-003.ttl │ │ └── regex-result-004.ttl │ │ ├── solution-seq │ │ ├── data.ttl │ │ ├── manifest.ttl │ │ ├── slice-01.rq │ │ ├── slice-02.rq │ │ ├── slice-03.rq │ │ ├── slice-04.rq │ │ ├── slice-10.rq │ │ ├── slice-11.rq │ │ ├── slice-12.rq │ │ ├── slice-13.rq │ │ ├── slice-20.rq │ │ ├── slice-21.rq │ │ ├── slice-22.rq │ │ ├── slice-23.rq │ │ ├── slice-24.rq │ │ ├── slice-results-01.ttl │ │ ├── slice-results-02.ttl │ │ ├── slice-results-03.ttl │ │ ├── slice-results-04.ttl │ │ ├── slice-results-10.ttl │ │ ├── slice-results-11.ttl │ │ ├── slice-results-12.ttl │ │ ├── slice-results-13.ttl │ │ ├── slice-results-20.ttl │ │ ├── slice-results-21.ttl │ │ ├── slice-results-22.ttl │ │ ├── slice-results-23.ttl │ │ └── slice-results-24.ttl │ │ ├── sort │ │ ├── data-sort-1.ttl │ │ ├── data-sort-11.ttl │ │ ├── data-sort-3.ttl │ │ ├── data-sort-4.ttl │ │ ├── data-sort-6.ttl │ │ ├── data-sort-7.ttl │ │ ├── data-sort-8.ttl │ │ ├── data-sort-9.ttl │ │ ├── data-sort-builtin.ttl │ │ ├── data-sort-function.ttl │ │ ├── data-sort-numbers.ttl │ │ ├── extended-manifest.ttl │ │ ├── manifest.ttl │ │ ├── query-sort-1.rq │ │ ├── query-sort-10.rq │ │ ├── query-sort-2.rq │ │ ├── query-sort-3.rq │ │ ├── query-sort-4.rq │ │ ├── query-sort-5.rq │ │ ├── query-sort-6.rq │ │ ├── query-sort-9.rq │ │ ├── query-sort-builtin.rq │ │ ├── query-sort-function.rq │ │ ├── query-sort-numbers.rq │ │ ├── result-sort-1.rdf │ │ ├── result-sort-10.rdf │ │ ├── result-sort-11.ttl │ │ ├── result-sort-2.rdf │ │ ├── result-sort-3.rdf │ │ ├── result-sort-4.rdf │ │ ├── result-sort-5.rdf │ │ ├── result-sort-6.rdf │ │ ├── result-sort-7.rdf │ │ ├── result-sort-8.rdf │ │ ├── result-sort-9.rdf │ │ ├── result-sort-builtin.ttl │ │ ├── result-sort-function.ttl │ │ └── result-sort-numbers.ttl │ │ ├── syntax-sparql1 │ │ ├── manifest.ttl │ │ ├── syntax-basic-01.rq │ │ ├── syntax-basic-02.rq │ │ ├── syntax-basic-03.rq │ │ ├── syntax-basic-04.rq │ │ ├── syntax-basic-05.rq │ │ ├── syntax-basic-06.rq │ │ ├── syntax-bnodes-01.rq │ │ ├── syntax-bnodes-02.rq │ │ ├── syntax-bnodes-03.rq │ │ ├── syntax-bnodes-04.rq │ │ ├── syntax-bnodes-05.rq │ │ ├── syntax-expr-01.rq │ │ ├── syntax-expr-02.rq │ │ ├── syntax-expr-03.rq │ │ ├── syntax-expr-04.rq │ │ ├── syntax-expr-05.rq │ │ ├── syntax-forms-01.rq │ │ ├── syntax-forms-02.rq │ │ ├── syntax-limit-offset-01.rq │ │ ├── syntax-limit-offset-02.rq │ │ ├── syntax-limit-offset-03.rq │ │ ├── syntax-limit-offset-04.rq │ │ ├── syntax-lists-01.rq │ │ ├── syntax-lists-02.rq │ │ ├── syntax-lists-03.rq │ │ ├── syntax-lists-04.rq │ │ ├── syntax-lists-05.rq │ │ ├── syntax-lit-01.rq │ │ ├── syntax-lit-02.rq │ │ ├── syntax-lit-03.rq │ │ ├── syntax-lit-04.rq │ │ ├── syntax-lit-05.rq │ │ ├── syntax-lit-06.rq │ │ ├── syntax-lit-07.rq │ │ ├── syntax-lit-08.rq │ │ ├── syntax-lit-09.rq │ │ ├── syntax-lit-10.rq │ │ ├── syntax-lit-11.rq │ │ ├── syntax-lit-12.rq │ │ ├── syntax-lit-13.rq │ │ ├── syntax-lit-14.rq │ │ ├── syntax-lit-15.rq │ │ ├── syntax-lit-16.rq │ │ ├── syntax-lit-17.rq │ │ ├── syntax-lit-18.rq │ │ ├── syntax-lit-19.rq │ │ ├── syntax-lit-20.rq │ │ ├── syntax-order-01.rq │ │ ├── syntax-order-02.rq │ │ ├── syntax-order-03.rq │ │ ├── syntax-order-04.rq │ │ ├── syntax-order-05.rq │ │ ├── syntax-order-06.rq │ │ ├── syntax-order-07.rq │ │ ├── syntax-pat-01.rq │ │ ├── syntax-pat-02.rq │ │ ├── syntax-pat-03.rq │ │ ├── syntax-pat-04.rq │ │ ├── syntax-qname-01.rq │ │ ├── syntax-qname-02.rq │ │ ├── syntax-qname-03.rq │ │ ├── syntax-qname-04.rq │ │ ├── syntax-qname-05.rq │ │ ├── syntax-qname-06.rq │ │ ├── syntax-qname-07.rq │ │ ├── syntax-qname-08.rq │ │ ├── syntax-struct-01.rq │ │ ├── syntax-struct-02.rq │ │ ├── syntax-struct-03.rq │ │ ├── syntax-struct-05.rq │ │ ├── syntax-struct-06.rq │ │ ├── syntax-struct-07.rq │ │ ├── syntax-struct-08.rq │ │ ├── syntax-struct-09.rq │ │ ├── syntax-struct-10.rq │ │ ├── syntax-struct-11.rq │ │ ├── syntax-struct-12.rq │ │ ├── syntax-struct-13.rq │ │ ├── syntax-struct-14.rq │ │ ├── syntax-union-01.rq │ │ └── syntax-union-02.rq │ │ ├── syntax-sparql2 │ │ ├── manifest.ttl │ │ ├── syntax-bnode-01.rq │ │ ├── syntax-bnode-02.rq │ │ ├── syntax-bnode-03.rq │ │ ├── syntax-dataset-01.rq │ │ ├── syntax-dataset-02.rq │ │ ├── syntax-dataset-03.rq │ │ ├── syntax-dataset-04.rq │ │ ├── syntax-esc-01.rq │ │ ├── syntax-esc-02.rq │ │ ├── syntax-esc-03.rq │ │ ├── syntax-esc-04.rq │ │ ├── syntax-esc-05.rq │ │ ├── syntax-form-ask-02.rq │ │ ├── syntax-form-construct01.rq │ │ ├── syntax-form-construct02.rq │ │ ├── syntax-form-construct03.rq │ │ ├── syntax-form-construct04.rq │ │ ├── syntax-form-construct06.rq │ │ ├── syntax-form-describe01.rq │ │ ├── syntax-form-describe02.rq │ │ ├── syntax-form-select-01.rq │ │ ├── syntax-form-select-02.rq │ │ ├── syntax-function-01.rq │ │ ├── syntax-function-02.rq │ │ ├── syntax-function-03.rq │ │ ├── syntax-function-04.rq │ │ ├── syntax-general-01.rq │ │ ├── syntax-general-02.rq │ │ ├── syntax-general-03.rq │ │ ├── syntax-general-04.rq │ │ ├── syntax-general-05.rq │ │ ├── syntax-general-06.rq │ │ ├── syntax-general-07.rq │ │ ├── syntax-general-08.rq │ │ ├── syntax-general-09.rq │ │ ├── syntax-general-10.rq │ │ ├── syntax-general-11.rq │ │ ├── syntax-general-12.rq │ │ ├── syntax-general-13.rq │ │ ├── syntax-general-14.rq │ │ ├── syntax-graph-01.rq │ │ ├── syntax-graph-02.rq │ │ ├── syntax-graph-03.rq │ │ ├── syntax-graph-04.rq │ │ ├── syntax-graph-05.rq │ │ ├── syntax-keywords-01.rq │ │ ├── syntax-keywords-02.rq │ │ ├── syntax-keywords-03.rq │ │ ├── syntax-lists-01.rq │ │ ├── syntax-lists-02.rq │ │ ├── syntax-lists-03.rq │ │ ├── syntax-lists-04.rq │ │ └── syntax-lists-05.rq │ │ ├── syntax-sparql3 │ │ ├── manifest.ttl │ │ ├── syn-01.rq │ │ ├── syn-02.rq │ │ ├── syn-03.rq │ │ ├── syn-04.rq │ │ ├── syn-05.rq │ │ ├── syn-06.rq │ │ ├── syn-07.rq │ │ ├── syn-08.rq │ │ ├── syn-bad-01.rq │ │ ├── syn-bad-02.rq │ │ ├── syn-bad-03.rq │ │ ├── syn-bad-04.rq │ │ ├── syn-bad-05.rq │ │ ├── syn-bad-06.rq │ │ ├── syn-bad-07.rq │ │ ├── syn-bad-08.rq │ │ ├── syn-bad-09.rq │ │ ├── syn-bad-10.rq │ │ ├── syn-bad-11.rq │ │ ├── syn-bad-12.rq │ │ ├── syn-bad-13.rq │ │ ├── syn-bad-14.rq │ │ ├── syn-bad-15.rq │ │ ├── syn-bad-16.rq │ │ ├── syn-bad-17.rq │ │ ├── syn-bad-18.rq │ │ ├── syn-bad-19.rq │ │ ├── syn-bad-20.rq │ │ ├── syn-bad-21.rq │ │ ├── syn-bad-22.rq │ │ ├── syn-bad-23.rq │ │ ├── syn-bad-24.rq │ │ ├── syn-bad-25.rq │ │ ├── syn-bad-26.rq │ │ ├── syn-bad-27.rq │ │ ├── syn-bad-28.rq │ │ ├── syn-bad-29.rq │ │ ├── syn-bad-30.rq │ │ ├── syn-bad-31.rq │ │ ├── syn-bad-bnode-dot.rq │ │ ├── syn-bad-bnodes-missing-pvalues-01.rq │ │ ├── syn-bad-bnodes-missing-pvalues-02.rq │ │ ├── syn-bad-empty-optional-01.rq │ │ ├── syn-bad-empty-optional-02.rq │ │ ├── syn-bad-filter-missing-parens.rq │ │ ├── syn-bad-lone-list.rq │ │ ├── syn-bad-lone-node.rq │ │ ├── syn-blabel-cross-filter.rq │ │ ├── syn-blabel-cross-graph-bad.rq │ │ ├── syn-blabel-cross-optional-bad.rq │ │ └── syn-blabel-cross-union-bad.rq │ │ ├── syntax-sparql4 │ │ ├── manifest.ttl │ │ ├── syn-09.rq │ │ ├── syn-10.rq │ │ ├── syn-11.rq │ │ ├── syn-bad-34.rq │ │ ├── syn-bad-35.rq │ │ ├── syn-bad-36.rq │ │ ├── syn-bad-37.rq │ │ ├── syn-bad-38.rq │ │ ├── syn-bad-GRAPH-breaks-BGP.rq │ │ ├── syn-bad-OPT-breaks-BGP.rq │ │ ├── syn-bad-UNION-breaks-BGP.rq │ │ └── syn-leading-digits-in-prefixed-names.rq │ │ ├── syntax-sparql5 │ │ ├── manifest.ttl │ │ ├── syntax-reduced-01.rq │ │ └── syntax-reduced-02.rq │ │ ├── triple-match │ │ ├── data-01.ttl │ │ ├── data-02.ttl │ │ ├── data-03.ttl │ │ ├── dawg-data-01.ttl │ │ ├── dawg-tp-01.rq │ │ ├── dawg-tp-02.rq │ │ ├── dawg-tp-03.rq │ │ ├── dawg-tp-04.rq │ │ ├── dawg-tp-05.rq │ │ ├── manifest.ttl │ │ ├── result-tp-01.ttl │ │ ├── result-tp-02.ttl │ │ ├── result-tp-03.ttl │ │ └── result-tp-04.ttl │ │ ├── type-promotion │ │ ├── false.ttl │ │ ├── manifest.ttl │ │ ├── tP-byte-short-fail.rq │ │ ├── tP-byte-short.rq │ │ ├── tP-decimal-decimal.rq │ │ ├── tP-double-decimal-fail.rq │ │ ├── tP-double-decimal.rq │ │ ├── tP-double-double.rq │ │ ├── tP-double-float-fail.rq │ │ ├── tP-double-float.rq │ │ ├── tP-float-decimal-fail.rq │ │ ├── tP-float-decimal.rq │ │ ├── tP-float-float.rq │ │ ├── tP-int-short.rq │ │ ├── tP-integer-short.rq │ │ ├── tP-long-short.rq │ │ ├── tP-negativeInteger-short.rq │ │ ├── tP-nonNegativeInteger-short.rq │ │ ├── tP-nonPositiveInteger-short.rq │ │ ├── tP-positiveInteger-short.rq │ │ ├── tP-short-byte-fail.rq │ │ ├── tP-short-decimal.rq │ │ ├── tP-short-double.rq │ │ ├── tP-short-float.rq │ │ ├── tP-short-int-fail.rq │ │ ├── tP-short-long-fail.rq │ │ ├── tP-short-short-fail.rq │ │ ├── tP-short-short.rq │ │ ├── tP-unsignedByte-short.rq │ │ ├── tP-unsignedInt-short.rq │ │ ├── tP-unsignedLong-short.rq │ │ ├── tP-unsignedShort-short.rq │ │ ├── tP.ttl │ │ └── true.ttl │ │ └── x ├── Store │ └── Adapter │ │ └── Virtuoso │ │ └── ResultConverter │ │ ├── CsvTest.php │ │ ├── ExtendedTest.php │ │ ├── SparqlResultsXmlTest.php │ │ └── _files │ │ ├── sparql-empty.rdf │ │ ├── sparql-error.rdf │ │ ├── sparql-invalid.rdf │ │ ├── sparql-result1.rdf │ │ ├── sparql-result2.rdf │ │ ├── sparql-result3.rdf │ │ └── sparql-result4.rdf ├── StoreStub.php ├── StoreTest.php ├── Syntax │ ├── RdfParser │ │ └── Adapter │ │ │ ├── RdfJsonTest.php │ │ │ ├── RdfXmlTest.php │ │ │ └── TurtleTest.php │ ├── RdfParserTest.php │ ├── RdfSerializerTest.php │ └── _files │ │ ├── invalid │ │ ├── illegal-escape.ttl │ │ └── showcase.rdf │ │ ├── misc │ │ └── test_no_base_uri.ttl │ │ └── valid │ │ ├── SysOnt.ttl │ │ ├── SysOntLocal.ttl │ │ ├── conferences.json │ │ ├── conferences.rdf │ │ ├── conferences.result │ │ ├── conferences.ttl │ │ ├── cube.ttl │ │ ├── cube2.ttl │ │ ├── emptyLineForBlankNode.ttl │ │ ├── foaf.me.rdf │ │ ├── musicontology.rdfs │ │ ├── test_aksw.result │ │ └── test_aksw.ttl ├── TestCase.php ├── UriTest.php ├── UtilsTest.php ├── Versioning │ ├── AuthStub.php │ └── StoreStub.php ├── VersioningTest.php ├── Wrapper │ ├── LinkeddataWrapperTest.php │ ├── ManagerTest.php │ ├── RdfaWrapperTest.php │ ├── RegistryTest.php │ └── _files │ │ ├── data │ │ ├── rdfaTestResource1.html │ │ ├── testResource1.rdf │ │ ├── testResource2.ttl │ │ ├── testResource3.html │ │ └── testResource3.rdf │ │ ├── disabled │ │ ├── disabled.php │ │ └── wrapper.ini │ │ ├── enabled │ │ ├── EnabledWrapper.php │ │ └── wrapper.ini │ │ └── noconfig │ │ └── noconfig.php └── _files │ ├── data │ └── testResource1.rdf │ └── logs │ └── .gitkeep └── phpunit.xml.dist /.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | local.ini 3 | config.ini 4 | .settings 5 | .project 6 | .idea 7 | .buildpath 8 | .DS_Store 9 | .htaccess 10 | nbproject 11 | cache.properties 12 | cache.sqlite 13 | vendor 14 | composer.phar 15 | # build stuff 16 | build/ 17 | cache/ 18 | !build/phpcs.xml 19 | !build/phpcmd.xml 20 | -------------------------------------------------------------------------------- /debian/Makefile/Makefile: -------------------------------------------------------------------------------- 1 | 2 | default: 3 | 4 | prepare: 5 | rm ../../Makefile 6 | rm ../../build.xml 7 | 8 | clean: 9 | rm -rf ../files 10 | rm -rf ../*.log 11 | rm -rf ../liberfurt-php.substvars 12 | rm -rf ../liberfurt-php/ 13 | 14 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /debian/install: -------------------------------------------------------------------------------- 1 | library/Erfurt usr/share/php/liberfurt-php 2 | library/antlr usr/share/php/liberfurt-php 3 | README.md usr/share/php/liberfurt-php 4 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (native) 2 | -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql10/Sparql10/Tokenizer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql10/Sparql10/Tokenizer.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql10/Sparql10Lexer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql10/Sparql10Lexer.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql10/Sparql10Parser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql10/Sparql10Parser.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql11/Query/Sparql11query.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql11/Query/Sparql11query.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql11/Query/Tokenizer11.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql11/Query/Tokenizer11.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql11/QueryLexer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql11/QueryLexer.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql11/QueryParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql11/QueryParser.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql11/Update/Sparql10.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql11/Update/Sparql10.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql11/Update/Sparql11update.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql11/Update/Sparql11update.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql11/Update/Tokenizer11.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql11/Update/Tokenizer11.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql11/UpdateLexer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql11/UpdateLexer.php -------------------------------------------------------------------------------- /library/Erfurt/Sparql/Parser/Sparql11/UpdateParser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/library/Erfurt/Sparql/Parser/Sparql11/UpdateParser.php -------------------------------------------------------------------------------- /library/antlr/Php/antlr.php: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /library/antlr/Php/util.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/CodeSniffer/Standards/Erfurt/ruleset.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A Ontowiki coding standard. 4 | 5 | -------------------------------------------------------------------------------- /tests/README: -------------------------------------------------------------------------------- 1 | To start test cases you need to install PHPUnit 3.2 first. 2 | 3 | From the tests directory launch PHPUnit with the test you want to perform. 4 | To test Rdf_Model for instance type: 5 | phpunit Erfurt_Rdf_ModelTest 6 | 7 | To test the complete suite: 8 | phpunit Erfurt_TestSuite 9 | -------------------------------------------------------------------------------- /tests/scripts/travis/virtuoso-sparql-permission.sql: -------------------------------------------------------------------------------- 1 | GRANT EXECUTE ON DB.DBA.SPARQL_INSERT_DICT_CONTENT TO "SPARQL"; 2 | GRANT EXECUTE ON DB.DBA.SPARQL_DELETE_DICT_CONTENT TO "SPARQL"; 3 | GRANT EXECUTE ON SPARQL_DELETE_DICT_CONTENT to "SPARQL"; 4 | GRANT EXECUTE ON SPARQL_DELETE_DICT_CONTENT to SPARQL_UPDATE; 5 | GRANT SPARQL_UPDATE to "SPARQL"; 6 | GRANT SPARQL_SPONGE to "SPARQL"; -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/erfurt/ef_ac1.rq: -------------------------------------------------------------------------------- 1 | SELECT ?group ?p ?o 2 | FROM 3 | FROM 4 | WHERE { 5 | ?group ?p ?o . 6 | ?group 7 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/erfurt/ef_ac2.rq: -------------------------------------------------------------------------------- 1 | SELECT ?s ?p ?o 2 | FROM 3 | FROM 4 | WHERE { 5 | ?s ?p ?o . 6 | FILTER (sameTerm(?s, )) 7 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/erfurt/ef_resource1.rq: -------------------------------------------------------------------------------- 1 | SELECT ?0 ?1 2 | FROM 3 | WHERE { 4 | { 5 | ?0 6 | } 7 | UNION 8 | { 9 | ?1 10 | } 11 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/erfurt/ef_serializer1.rq: -------------------------------------------------------------------------------- 1 | SELECT ?s ?p ?o 2 | FROM 3 | WHERE { 4 | ?s ?p ?o . 5 | FILTER (!isLiteral(?o)) . 6 | FILTER (sameTerm(?s, )) 7 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/erfurt/ef_serializer2.rq: -------------------------------------------------------------------------------- 1 | SELECT ?s ?p ?o 2 | FROM 3 | WHERE { 4 | ?s ?p ?o . 5 | FILTER (isLiteral(?o)) . 6 | FILTER (sameTerm(?s, )) 7 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/erfurt/ef_store1.rq: -------------------------------------------------------------------------------- 1 | SELECT ?parent ?child 2 | FROM 3 | WHERE { 4 | ?child ?parent. 5 | FILTER (sameTerm(?parent, )) 6 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/ontowiki/ow_ext_linkinghere1.rq: -------------------------------------------------------------------------------- 1 | SELECT DISTINCT ?uri ?uri0 ?uri1 2 | FROM 3 | WHERE { 4 | ?subject ?uri . 5 | OPTIONAL { ?uri ?uri0. } 6 | OPTIONAL { ?uri ?uri1. } 7 | } 8 | LIMIT 5 -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/ontowiki/ow_ext_map1.rq: -------------------------------------------------------------------------------- 1 | SELECT ?lat, ?long 2 | FROM 3 | WHERE { 4 | ?lat; 5 | ?long. 6 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/LimitOff_1.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX ex: 3 | 4 | SELECT ?name ?emp 5 | WHERE { ?x foaf:name ?name ; 6 | ex:empId ?emp 7 | } 8 | ORDER BY ASC(?emp) 9 | LIMIT 2 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/LimitOff_2.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX ex: 3 | 4 | SELECT ?name ?emp 5 | WHERE { ?x foaf:name ?name ; 6 | ex:empId ?emp 7 | } 8 | ORDER BY ASC(?emp) 9 | OFFSET 2 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/LimitOff_3.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX ex: 3 | 4 | SELECT ?name ?emp 5 | WHERE { ?x foaf:name ?name ; 6 | ex:empId ?emp 7 | } 8 | ORDER BY ASC(?emp) 9 | OFFSET 2 10 | LIMIT 2 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ask-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | ASK { ?person foaf:name ?name . } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ask-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | ASK { ?person foaf:name "alice" . } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/bound1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?a ?c 3 | WHERE 4 | { ?a :b ?c . 5 | OPTIONAL 6 | { ?c :d ?e } . 7 | FILTER (! bound(?e)) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/count-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | COUNT { ?person foaf:name ?name . } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/count-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | COUNT { ?person foaf:name "alice" . } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/customUnion1.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc10: 2 | PREFIX dc11: 3 | PREFIX test: 4 | 5 | SELECT ?title 6 | WHERE { { ?book dc10:title ?title } UNION { ?book dc11:title ?title } UNION {?book test:title ?title}} -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/customUnion2.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name ?mbox 3 | WHERE {{ ?x foaf:name ?name . ?x foaf:mbox ?mbox } UNION { ?x foaf:mbox2 ?mbox} } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/dawg-query-001.rq: -------------------------------------------------------------------------------- 1 | # Get name, and optionally the mbox, of each person 2 | 3 | PREFIX foaf: 4 | 5 | SELECT ?name ?mbox 6 | WHERE 7 | { ?person foaf:name ?name . 8 | OPTIONAL { ?person foaf:mbox ?mbox} 9 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/dawg-query-002.rq: -------------------------------------------------------------------------------- 1 | # Get names of people, together with the names of people they know. 2 | 3 | PREFIX foaf: 4 | 5 | SELECT ?name ?name2 6 | WHERE 7 | { ?person foaf:name ?name . 8 | OPTIONAL { 9 | ?person foaf:knows ?p2 . 10 | ?p2 foaf:name ?name2 . 11 | } 12 | } 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/dawg-query-004.rq: -------------------------------------------------------------------------------- 1 | # Get optional get the mbox, of each person 2 | 3 | PREFIX foaf: 4 | SELECT ?name 5 | WHERE 6 | { OPTIONAL { ?person foaf:name ?name } } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/dawg-tp-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | WHERE { :x ?p ?q . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/dawg-tp-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | WHERE { ?x :p ?q . } 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/dawg-tp-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE { ?a ?a ?b . } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/dawg-tp-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX foaf: 3 | 4 | SELECT ?name 5 | WHERE { 6 | ?x rdf:type foaf:Person . 7 | ?x foaf:name ?name . 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex11.2.3.1_0.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name1 ?name2 3 | WHERE { ?x foaf:name ?name1 ; 4 | foaf:mbox ?mbox1 . 5 | ?y foaf:name ?name2 ; 6 | foaf:mbox ?mbox2 . 7 | FILTER ( ?mbox1 = ?mbox2 && ?name1 != ?name2 ) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex11.2.3.2_0.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX dc: 3 | SELECT ?name ?givenName 4 | WHERE { { ?x foaf:name ?name } UNION { ?x foaf:givenName ?givenName; dc:created ?created } . 5 | FILTER ( bound(?name) || ?created < "2005-01-01T00:00:00Z" ) } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex11.2.3.2_1.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX dc: 3 | SELECT ?name 4 | WHERE { ?x foaf:name ?name . 5 | OPTIONAL { ?x dc:created ?created } . 6 | FILTER ( !bound(?created)) } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex11.2.3.3_0.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name ?mbox 3 | WHERE { ?x foaf:name ?name ; 4 | foaf:mbox ?mbox . 5 | FILTER isUri(?mbox) } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex11.2.3.5_0.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name ?mbox 3 | WHERE { ?x foaf:name ?name ; 4 | foaf:mbox ?mbox . 5 | FILTER isLiteral(?mbox) } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex11.2.3.6_0.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name ?mbox 3 | WHERE { ?x foaf:name ?name ; 4 | foaf:mbox ?mbox . 5 | FILTER regex(str(?mbox), "@work.example") } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex11.2.3.7_0.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name ?mbox 3 | WHERE { ?x foaf:name ?name ; 4 | foaf:mbox ?mbox . 5 | FILTER ( lang(?name) = "ES" ) } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex2-1a.rq: -------------------------------------------------------------------------------- 1 | SELECT ?title 2 | WHERE 3 | { ?title } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex2-2a.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?x ?v } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex2-3a.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?mbox 3 | WHERE 4 | { ?x foaf:name "Johnny Lee Outlaw" . 5 | ?x foaf:mbox ?mbox . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex2-4a.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name ?mbox 3 | WHERE 4 | { ?x foaf:name ?name . 5 | ?x foaf:mbox ?mbox . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/ex3.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc: 2 | PREFIX ns: 3 | SELECT ?title ?price 4 | WHERE 5 | { ?x ns:price ?price . 6 | FILTER ( ?price < 30 ) . 7 | ?x dc:title ?title . 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/expr-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc: 2 | PREFIX x: 3 | SELECT ?title ?price 4 | WHERE 5 | { ?book dc:title ?title . 6 | OPTIONAL 7 | { ?book x:price ?price . 8 | FILTER (?price < 15) . 9 | } . 10 | } 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/expr-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc: 2 | PREFIX x: 3 | SELECT ?title ?price 4 | WHERE 5 | { ?book dc:title ?title . 6 | OPTIONAL 7 | { ?book x:price ?price } . 8 | FILTER (?price < 15) . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/expr-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc: 2 | PREFIX x: 3 | SELECT ?title ?price 4 | WHERE 5 | { ?book dc:title ?title . 6 | OPTIONAL 7 | { ?book x:price ?price } . 8 | FILTER ( ( ! bound(?price) ) || ( ?price < 15 ) ) . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/graphset1.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | 3 | SELECT ?src ?bobNick 4 | WHERE 5 | { 6 | GRAPH ?src 7 | { ?x foaf:mbox . 8 | ?x foaf:nick ?bobNick 9 | } 10 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/graphset2.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX data: 3 | 4 | SELECT ?nick 5 | WHERE 6 | { 7 | GRAPH data:bobFoaf { 8 | ?x foaf:mbox . 9 | ?x foaf:nick ?nick } 10 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/graphset3.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX dc: 3 | 4 | SELECT ?name ?mbox ?date 5 | WHERE 6 | { ?g dc:publisher ?name ; 7 | dc:date ?date . 8 | GRAPH ?g 9 | { ?person foaf:name ?name ; foaf:mbox ?mbox } 10 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-base-prefix-1.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <> 3 | 4 | SELECT * WHERE { :x ?p ?v } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-base-prefix-2.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | 4 | SELECT * WHERE { :x ?p ?v } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-base-prefix-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX ns: 2 | PREFIX x: 3 | 4 | SELECT * WHERE { x:x ns:p ?v } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-base-prefix-4.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | 3 | SELECT * WHERE {

?v } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-base-prefix-5.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | 3 | SELECT * WHERE { <#x> <#p> ?v } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-blank-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER (isBlank(?v)) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-construct-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX ns: 2 | PREFIX : 3 | 4 | CONSTRUCT 5 | { ?x ns:knows ?y } 6 | WHERE 7 | { ?x ns:loves ?y } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-construct-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX ns: 2 | PREFIX : 3 | 4 | # No match => empty graph 5 | CONSTRUCT 6 | { ?x ns:knows ?y } 7 | WHERE 8 | { ?x ns:sameTown ?y } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-datatype-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( datatype(?v) = xsd:double ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-langMatches-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { :x ?p ?v . FILTER langMatches(lang(?v), "en-GB") . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-langMatches-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { :x ?p ?v . FILTER langMatches(lang(?v), "en") . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-langMatches-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { :x ?p ?v . FILTER langMatches(lang(?v), "*") . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-langMatches-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { :x ?p ?v . FILTER (! langMatches(lang(?v), "*")) . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-opt-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | 3 | SELECT ?mbox ?name 4 | { 5 | ?x foaf:mbox ?mbox . 6 | OPTIONAL { ?x foaf:name ?name } . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-opt-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | 3 | SELECT ?mbox ?name ?nick 4 | { 5 | ?x foaf:mbox ?mbox . 6 | OPTIONAL { ?x foaf:name ?name } . 7 | OPTIONAL { ?x foaf:nick ?nick } . 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-reif-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | CONSTRUCT 3 | { _:b0 rdf:subject ?s . 4 | _:b0 rdf:predicate ?p . 5 | _:b0 rdf:object ?o . 6 | } 7 | WHERE 8 | { ?s ?p ?o . } 9 | ORDER BY ?s ?o -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-reif-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | CONSTRUCT 3 | { ?s ?p ?o . 4 | } 5 | WHERE 6 | { _:b0 rdf:subject ?s . 7 | _:b0 rdf:predicate ?p . 8 | _:b0 rdf:object ?o . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-select-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?x 4 | { :x :p ?x } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-select-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?x ?y 4 | { :x :p ?x } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-select-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?x 4 | { :x :p ?x . :x :q ?y } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-str-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER (str(?v) = "1") . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-str-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER (str(?v) = "01") . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-str-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER (str(?v) = "zzz") . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-str-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER (str(?v) = "") . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/q-uri-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER isURI(?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-01.rq: -------------------------------------------------------------------------------- 1 | # bad: { instead of ( expected; unbound prefix rdf 2 | PREFIX : 3 | SELECT ?c WHERE (:x rdf:type ?c) 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-bev-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | FILTER (?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-bev-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | FILTER ( ! ?v ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-bev-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | FILTER ("true"^^xsd:boolean && ?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-bev-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | FILTER ("false"^^xsd:boolean || ?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-bev-5.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | OPTIONAL 7 | { ?a :q ?w } . 8 | FILTER (?w) . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-bev-6.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a ?w 4 | WHERE 5 | { ?a :p ?v . 6 | OPTIONAL 7 | { ?a :q ?w } . 8 | FILTER (! ?w) . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( ?v = 1 ) } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER (?v = 1.0) 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER (?v = "1") 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER (?v = "zzz" ) 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq-5.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER (?v = :z) 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq-graph-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p 1 . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq-graph-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p 1.0 . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq-graph-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( ?v = "1" ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq-graph-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p "zzz" . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-eq2-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?v1 ?v2 4 | WHERE 5 | { ?x1 :p ?v1 . 6 | ?x2 :p ?v2 . 7 | FILTER (?v1 = ?v2) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-sort-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name 3 | WHERE { ?x foaf:name ?name } 4 | ORDER BY ?name 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-sort-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name 3 | WHERE { ?x foaf:name ?name } 4 | ORDER BY DESC(?name) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-sort-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name ?mbox 3 | WHERE { ?x foaf:name ?name . 4 | OPTIONAL { ?x foaf:mbox ?mbox } 5 | } 6 | ORDER BY ASC(?mbox) 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-sort-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX ex: 3 | 4 | SELECT ?name ?emp 5 | WHERE { ?x foaf:name ?name ; 6 | ex:empId ?emp 7 | } 8 | ORDER BY ASC(?emp) 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-sort-5.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX ex: 3 | 4 | SELECT ?name ?emp 5 | WHERE { ?x foaf:name ?name ; 6 | ex:empId ?emp 7 | } 8 | ORDER BY ?name DESC(?emp) 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-sort-6.rq: -------------------------------------------------------------------------------- 1 | PREFIX ex: 2 | 3 | SELECT ?address 4 | WHERE { ?x ex:address ?address } 5 | ORDER BY ASC(?address) 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-sort-datetime.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc: 2 | 3 | SELECT ?created 4 | WHERE { ?x dc:created ?created } 5 | ORDER BY ASC(?created) 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/query-survey-1.rq: -------------------------------------------------------------------------------- 1 | prefix ex: 2 | SELECT ?n 3 | WHERE 4 | { ?x ex:author _:a . _:a ?li _:b . _:b ex:name ?n . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/regex-query-001.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX ex: 3 | 4 | SELECT ?val 5 | WHERE { 6 | ex:foo rdf:value ?val . 7 | FILTER regex(?val, "GHI") 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/regex-query-002.rq: -------------------------------------------------------------------------------- 1 | PREFIX ex: 2 | PREFIX rdf: 3 | 4 | SELECT ?val 5 | WHERE { 6 | ex:foo rdf:value ?val . 7 | FILTER regex(?val, "DeFghI", "i") 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/regex-query-003.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX ex: 3 | 4 | SELECT ?val 5 | WHERE { 6 | ex:foo rdf:value ?val . 7 | FILTER regex(?val, "example\\.com") 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-0-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-0-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?y ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-0-03.rq: -------------------------------------------------------------------------------- 1 | SELECT ?select 2 | WHERE 3 | { ?x ?select } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-0-04.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-01.rq: -------------------------------------------------------------------------------- 1 | SELECT ?x 2 | WHERE 3 | { ?x ?y ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?y ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-04.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y "v-1-1" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-05.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-06.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?y "v-1-1" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-07.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { "v-1-1" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-08.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?y "v-2-2" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-09.rq: -------------------------------------------------------------------------------- 1 | PREFIX prefix: 2 | SELECT * 3 | WHERE 4 | # ILLEGAL 5 | { prefix:/r-1 ?y "v-1-2" } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-1-10.rq: -------------------------------------------------------------------------------- 1 | SELECT ?x ?v 2 | WHERE 3 | { ?v } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-01.rq: -------------------------------------------------------------------------------- 1 | SELECT ?x ?y ?z 2 | WHERE 3 | { ?x ?y ?z . 4 | ?x ?y ?z . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-02.rq: -------------------------------------------------------------------------------- 1 | SELECT ?a 2 | WHERE 3 | { ?x ?y ?z . 4 | ?x ?y ?a . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | ?x ?a ?b . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-04.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | ?x ?a ?z . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-05.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y "v-1-1" . 4 | ?x ?y "v-1-1" . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-06.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y "v-1-1" . 4 | ?x ?y "v-1-2" . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-07.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z1 . 4 | ?x ?y ?z2 . 5 | FILTER ( ?z1 = ?z2 ) . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-08.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | ?x ?y "v-1-1" . 5 | ?x ?y ?z . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-09.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | ?x ?y ?z . 5 | ?x ?y ?a . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-2-10.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y "v-1-1" . 4 | ?x ?y ?z . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-3-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( str(?x) = str() ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-3-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( str(?y) = str() ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-3-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( str(?z) = "v-2-2" ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-3-04.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( str(?x) = str() ) . 5 | FILTER ( str(?y) = str() ) . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-3-05.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( str(?x) = str() ) . 5 | FILTER ( str(?y) = str() ) . 6 | FILTER ( str(?z) = "v-1-1" ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-3-06.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( str(?x) = str() ) . 5 | FILTER ( str(?y) = str() ) . 6 | FILTER ( str(?z) = str("v-2-1") ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-3-07.rq: -------------------------------------------------------------------------------- 1 | PREFIX rsyn: 2 | SELECT ?b ?y 3 | WHERE 4 | { ?b rsyn:type rsyn:Bag . 5 | ?b ?x ?y . 6 | FILTER ( ! ( ( str(?x) = str(rsyn:type) ) && ( str(?y) = str(rsyn:Bag) ) ) ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-4-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?a ?b ?z . 4 | ?z ?c ?d . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-4-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?a ?z . 4 | ?z ?d . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-4-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?a ?b } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-4-04.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?a ?b "http://rdf.hp.com/s2" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-4-05.rq: -------------------------------------------------------------------------------- 1 | SELECT ?y ?a ?b 2 | WHERE 3 | { ?x ?y ?z . 4 | ?z ?a ?b . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-4-06.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?p1 ?v1 . 4 | ?y ?p2 ?v2 . 5 | FILTER str(?x) = str(?y) . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-4-07.rq: -------------------------------------------------------------------------------- 1 | SELECT ?x ?y 2 | WHERE 3 | { ?x ?p1 "v-a-1" . 4 | ?y ?p2 "v-a-2" . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-5-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?x ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-5-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?x ?x } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-5-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?z ?x ?x } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-5-04.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?z ?x } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-6-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?x ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-6-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?x ?x } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-6-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?z ?x ?x } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-6-04.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?z ?x } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-7-01.rq: -------------------------------------------------------------------------------- 1 | SELECT ?x ?y ?a 2 | WHERE 3 | { ?x ?y ?z . 4 | ?y ?a ?b . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-7-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?y ?a ?b . 4 | ?x ?y ?z . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-7-03.rq: -------------------------------------------------------------------------------- 1 | SELECT ?x ?y ?a 2 | WHERE 3 | { ?x ?y ?z . 4 | ?y ?a ?b . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-7-04.rq: -------------------------------------------------------------------------------- 1 | SELECT ?x ?y ?a 2 | WHERE 3 | { ?y ?a ?b . 4 | ?x ?y ?z . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-9-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( ?z = "v-1-1" ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-9-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( ?z = "v-1-1" ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-01.rq: -------------------------------------------------------------------------------- 1 | SELECT ?x ?y 2 | WHERE 3 | { ?x ?y "value" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX ns: 2 | SELECT ?x ?y 3 | WHERE 4 | { ?x ?y "value"^^ns:someType } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX ex: 2 | SELECT ?x ?y 3 | WHERE 4 | { ?x ?y "value"^^ex:someType } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | 3 | SELECT ?x ?y 4 | WHERE 5 | { ?x ?y "value"^^xsd:string } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-05.rq: -------------------------------------------------------------------------------- 1 | SELECT ?z 2 | WHERE 3 | { ?x ?y ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-06.rq: -------------------------------------------------------------------------------- 1 | PREFIX ns: 2 | SELECT ?z 3 | WHERE 4 | { ?x ?y ?z . 5 | FILTER ( ( str(?z) = "value" ) && ( datatype(?z) = ns:someType ) ) . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-07.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-08.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y "value"@en } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-09.rq: -------------------------------------------------------------------------------- 1 | PREFIX ns: 2 | SELECT * 3 | WHERE 4 | { ?x ?y "value"^^ns:someType } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-10.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | 3 | SELECT * 4 | WHERE 5 | { ?x ?y "value"^^rdf:XMLLiteral } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-11.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( str(?z) = str("value"@en) ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-12.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?z . 4 | FILTER ( ?z = "value"@en ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-13.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y 5 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-15.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?v . 4 | FILTER ( ?v = 5 ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-16.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?v . 4 | FILTER ( ?v = 5 ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-17.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y "true" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-18.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { 4 | ?x ?y ?v . 5 | FILTER ( ?v = true ) 6 | } 7 | 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-19.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y 5.7 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/rap/test-B-20.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE 3 | { ?x ?y ?v . 4 | FILTER ( ?v = 5.7 ) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AKSW/Erfurt/cafb3a4caef01db9cb6dddf97929f7fc34c5477c/tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/LICENSE -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/data-1.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p "1"^^xsd:integer . 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/data-2.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p "1"^^xsd:integer . 5 | :x :p "2"^^xsd:integer . 6 | :x :p "3"^^xsd:integer . 7 | :x :p "4"^^xsd:integer . 8 | 9 | :x :q "1"^^xsd:integer . 10 | :x :q "2"^^xsd:integer . 11 | :x :q "3"^^xsd:integer . 12 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/filter-nested-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | { :x :p ?v . FILTER(?v = 1) } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/filter-nested-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | { :x :p ?v . { FILTER(?v = 1) } } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/filter-placement-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | { 5 | ?s :p ?v . 6 | FILTER (?v = 2) 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/filter-placement-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | { 5 | FILTER (?v = 2) 6 | ?s :p ?v . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/filter-placement-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v ?w 4 | { 5 | FILTER (?v = 2) 6 | FILTER (?w = 3) 7 | ?s :p ?v . 8 | ?s :q ?w . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/filter-scope-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | :x :p ?v . 6 | { :x :q ?w 7 | OPTIONAL { :x :p ?v2 FILTER(?v = 1) } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/join-combo-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?a ?y ?d ?z 4 | { 5 | ?a :p ?c OPTIONAL { ?a :r ?d }. 6 | ?a ?p 1 { ?p a ?y } UNION { ?a ?z ?p } 7 | } -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/join-combo-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?x ?y ?z 4 | { 5 | GRAPH ?g { ?x ?p 1 } { ?x :p ?y } UNION { ?p a ?z } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/join-combo-graph-1.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :b :p "1"^^xsd:integer . 5 | _:a :p "9"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/opt-filter-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | ?x :p ?v . 6 | OPTIONAL 7 | { 8 | ?y :q ?w . 9 | FILTER(?v=2) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/opt-filter-1.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x1 :p "1"^^xsd:integer . 5 | :x2 :p "2"^^xsd:integer . 6 | 7 | :x3 :q "3"^^xsd:integer . 8 | :x3 :q "4"^^xsd:integer . 9 | 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/opt-filter-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | ?x :p ?v . 6 | OPTIONAL 7 | { 8 | ?y :q ?w . 9 | FILTER(?v=2) 10 | FILTER(?w=3) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/opt-filter-2.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x1 :p "1"^^xsd:integer . 5 | :x2 :p "2"^^xsd:integer . 6 | 7 | :x3 :q "3"^^xsd:integer . 8 | :x3 :q "4"^^xsd:integer . 9 | 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/opt-filter-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | :x :p ?v . 6 | { :x :q ?w 7 | # ?v is not in scope so ?v2 never set 8 | OPTIONAL { :x :p ?v2 FILTER(?v = 1) } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/opt-filter-3.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x1 :p "1"^^xsd:integer . 5 | :x2 :p "2"^^xsd:integer . 6 | 7 | :x3 :q "3"^^xsd:integer . 8 | :x3 :q "4"^^xsd:integer . 9 | 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/two-nested-opt-alt.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | ## The nested optional example, rewritten to a form that is the same 4 | ## for the SPARQL algebra and the declarative semantics. 5 | SELECT * 6 | { 7 | :x1 :p ?v . 8 | OPTIONAL { :x3 :q ?w } 9 | OPTIONAL { :x3 :q ?w . :x2 :p ?v } 10 | } 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/two-nested-opt.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | :x1 :p ?v . 6 | OPTIONAL 7 | { 8 | :x3 :q ?w . 9 | OPTIONAL { :x2 :p ?v } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/two-nested-opt.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x1 :p "1"^^xsd:integer . 5 | :x2 :p "2"^^xsd:integer . 6 | :x3 :q "3"^^xsd:integer . 7 | :x3 :q "4"^^xsd:integer . 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/algebra/var-scope-join-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | ?X :name "paul" 6 | {?Y :name "george" . OPTIONAL { ?X :email ?Z } } 7 | } 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/ask/ask-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | ASK { :x :p 1 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/ask/ask-1.srx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/ask/ask-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | ASK { :x :p 99 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/ask/ask-4.srx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | false 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/ask/ask-7.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | ASK { :x :p ?x } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/ask/ask-7.srx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/ask/ask-8.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | ASK { :x :p ?x . FILTER(?x = 99) } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/ask/ask-8.srx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | false 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/ask/data.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p "1"^^xsd:integer . 5 | :x :p "2"^^xsd:integer . 6 | :x :p "3"^^xsd:integer . 7 | 8 | :y :p :a . 9 | :a :q :r . 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/base-prefix-1.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <> 3 | 4 | SELECT * WHERE { :x ?p ?v } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/base-prefix-2.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | 4 | SELECT * WHERE { :x ?p ?v } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/base-prefix-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX ns: 2 | PREFIX x: 3 | 4 | SELECT * WHERE { x:x ns:p ?v } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/base-prefix-4.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | 3 | SELECT * WHERE {

?v } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/base-prefix-5.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | 3 | SELECT * WHERE { <#x> <#p> ?v } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/bgp-no-match.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX foaf: 3 | SELECT ?x 4 | WHERE { 5 | ?x foaf:name "John Smith" ; 6 | a foaf:Womble . 7 | } 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/bgp-no-match.srx: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/data-1.ttl: -------------------------------------------------------------------------------- 1 | @prefix ns: . 2 | @prefix x: . 3 | @prefix z: . 4 | 5 | x:x ns:p "d:x ns:p" . 6 | x:x x:p "x:x x:p" . 7 | 8 | z:x z:p "z:x z:p" . 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/data-2.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | 5 | :x :list0 () . 6 | :x :list1 ("1"^^xsd:integer) . 7 | :x :list2 ("11"^^xsd:integer "22"^^xsd:integer) . 8 | :x :list3 ("111"^^xsd:integer "222"^^xsd:integer "333"^^xsd:integer) . 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/data-3.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | 3 | # This file uses UNIX line end conventions. 4 | 5 | :x1 :p1 "x" . 6 | :x2 :p2 """x 7 | y""" . 8 | 9 | :x3 :p3 """x 10 | y"""^^:someType . 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/data-5.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p1 "1"^^xsd:integer . 5 | :x :p2 "2"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/data-6.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p1 "1"^^xsd:integer . 5 | :x :p1 "2"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/data-7.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix foaf: . 3 | 4 | :john a foaf:Person ; 5 | foaf:name "John Smith" . 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/list-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?p 4 | { :x ?p () . } 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/list-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?p 4 | { :x ?p (1) . } 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/list-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?p ?v 4 | { :x ?p (?v) . } 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/list-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?p ?v ?w 4 | { :x ?p (?v ?w) . } 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/prefix-name-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX ex: 2 | SELECT ?p { 3 | ex: ?p 1 . 4 | } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/quotes-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?x 4 | { ?x ?p '''x''' } 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/quotes-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?x 4 | { ?x ?p """x""" } 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/quotes-3.rq: -------------------------------------------------------------------------------- 1 | # This query uses UNIX line end conventions. 2 | # It is in CVS in binary. 3 | PREFIX : 4 | 5 | SELECT ?x 6 | { ?x ?p '''x 7 | y''' 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/quotes-4.rq: -------------------------------------------------------------------------------- 1 | # This query uses UNIX line end conventions. 2 | # It is in CVS in binary. 3 | PREFIX : 4 | PREFIX xsd: 5 | 6 | SELECT ?x 7 | { ?x ?p """x 8 | y"""^^:someType 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/spoo-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT ?s WHERE { 5 | ?s :p1 1, 2 . 6 | } 7 | 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/term-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * { :x ?p true . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/term-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * { :x ?p false } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/term-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * { :x a ?C . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/term-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * { :x ?p 123.0 } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/term-5.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * { :x ?p 123.0. } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/term-6.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | # DOT is part of the decimal. 5 | SELECT * { :x ?p 456. } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/term-7.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | # DOT is part of the decimal. 5 | SELECT * { :x ?p 456. . } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/term-8.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | # DOT is part of the decimal. 5 | SELECT * { :x ?p +5 } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/term-9.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | # DOT is part of the decimal. 5 | SELECT * { :x ?p -18 } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/var-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * { :x ?p $v } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/basic/var-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * { :x ?p $v . :x ?p ?v } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/bnode-coreference/query.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX foaf: 3 | 4 | SELECT ?x ?y 5 | WHERE { 6 | ?x foaf:knows ?y . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/boolean-effective-value/query-bev-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | FILTER (?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/boolean-effective-value/query-bev-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | FILTER ( ! ?v ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/boolean-effective-value/query-bev-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | FILTER ("true"^^xsd:boolean && ?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/boolean-effective-value/query-bev-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | FILTER ("false"^^xsd:boolean || ?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/boolean-effective-value/query-bev-5.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a 4 | WHERE 5 | { ?a :p ?v . 6 | OPTIONAL 7 | { ?a :q ?w } . 8 | FILTER (?w) . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/boolean-effective-value/query-bev-6.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?a ?w 4 | WHERE 5 | { ?a :p ?v . 6 | OPTIONAL 7 | { ?a :q ?w } . 8 | FILTER ( ! ?w ) . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/boolean-effective-value/query-boolean-literal.rq: -------------------------------------------------------------------------------- 1 | prefix : 2 | select ?x where { 3 | ?x :p "foo" . 4 | FILTER (true) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/bound/bound1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?a ?c 3 | WHERE 4 | { ?a :b ?c . 5 | OPTIONAL 6 | { ?c :d ?e } . 7 | FILTER (! bound(?e)) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/bound/data.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | :a1 :b :c1 . 3 | :c1 :d :e . 4 | :a2 :b :c2 . 5 | :c2 :b :f . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/cast/cast-bool.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX rdf: 3 | PREFIX xsd: 4 | SELECT ?s WHERE { 5 | ?s :p ?v . 6 | FILTER(datatype(xsd:boolean(?v)) = xsd:boolean) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/cast/cast-dT.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX rdf: 3 | PREFIX xsd: 4 | SELECT ?s WHERE { 5 | ?s :p ?v . 6 | FILTER(datatype(xsd:dateTime(?v)) = xsd:dateTime) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/cast/cast-dbl.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX rdf: 3 | PREFIX xsd: 4 | SELECT ?s WHERE { 5 | ?s :p ?v . 6 | FILTER(datatype(xsd:double(?v)) = xsd:double) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/cast/cast-dec.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX rdf: 3 | PREFIX xsd: 4 | SELECT ?s WHERE { 5 | ?s :p ?v . 6 | FILTER(datatype(xsd:decimal(?v)) = xsd:decimal) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/cast/cast-flt.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX rdf: 3 | PREFIX xsd: 4 | SELECT ?s WHERE { 5 | ?s :p ?v . 6 | FILTER(datatype(xsd:float(?v)) = xsd:float) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/cast/cast-int.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX rdf: 3 | PREFIX xsd: 4 | SELECT ?s WHERE { 5 | ?s :p ?v . 6 | FILTER(datatype(xsd:integer(?v)) = xsd:integer) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/cast/cast-str.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX rdf: 3 | PREFIX xsd: 4 | SELECT ?s WHERE { 5 | ?s :p ?v . 6 | FILTER(datatype(xsd:string(?v)) = xsd:string) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/cast/data.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | 3 | :iri :p :z . 4 | :str :p "string" . 5 | :fltdbl :p "-10.2E3" . 6 | :decimal :p "+33.3300" . 7 | :int :p "13" . 8 | :dT :p "2002-10-10T17:00:00Z" . 9 | :bool :p "true" . 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/construct/data-opt.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p :a . 5 | :x :p :b . 6 | :x :p :c . 7 | :x :p "1"^^xsd:integer . 8 | 9 | :a :q "2"^^xsd:integer . 10 | :a :r "2"^^xsd:integer . 11 | 12 | :b :q "2"^^xsd:integer . 13 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/construct/query-construct-optional.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | CONSTRUCT { ?x :p2 ?v } 4 | 5 | WHERE 6 | { 7 | ?x :p ?o . 8 | OPTIONAL {?o :q ?v } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/construct/query-ident.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX foaf: 3 | 4 | CONSTRUCT { ?s ?p ?o . } 5 | WHERE { 6 | ?s ?p ?o . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/construct/query-reif-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX foaf: 3 | 4 | CONSTRUCT { [ rdf:subject ?s ; 5 | rdf:predicate ?p ; 6 | rdf:object ?o ] . } 7 | WHERE { 8 | ?s ?p ?o . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/construct/query-reif-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX foaf: 3 | 4 | CONSTRUCT { _:a rdf:subject ?s ; 5 | rdf:predicate ?p ; 6 | rdf:object ?o . } 7 | WHERE { 8 | ?s ?p ?o . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/construct/query-subgraph.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX foaf: 3 | 4 | CONSTRUCT { ?s foaf:name ?o . } 5 | WHERE { 6 | ?s foaf:name ?o . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/construct/result-construct-optional.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p2 "2"^^xsd:integer . 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/construct/result-subgraph.ttl: -------------------------------------------------------------------------------- 1 | @prefix foaf: . 2 | @prefix rdf: . 3 | 4 | _:gff foaf:name "Alice" . 5 | 6 | _:g2a foaf:name "Bob" . 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/data-g1-dup.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p "1"^^xsd:integer . 5 | :a :p "9"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/data-g1.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p "1"^^xsd:integer . 5 | :a :p "9"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/data-g2-dup.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :q "2"^^xsd:integer . 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/data-g2.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :q "2"^^xsd:integer . 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/data-g3-dup.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | _:x :p "1"^^xsd:integer . 5 | _:a :p "9"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/data-g3.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | _:x :p "1"^^xsd:integer . 5 | _:a :p "9"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/data-g4-dup.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | _:x :q "2"^^xsd:integer . 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/data-g4.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | _:x :q "2"^^xsd:integer . 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | { ?s ?p ?o } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM NAMED 5 | { ?s ?p ?o } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM NAMED 5 | { 6 | GRAPH ?g { ?s ?p ?o } 7 | } 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | { 6 | GRAPH ?g { ?s ?p ?o } 7 | } 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | FROM NAMED 6 | { ?s ?p ?o } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-06.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | FROM NAMED 6 | { 7 | GRAPH ?g { ?s ?p ?o } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-07.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | FROM NAMED 6 | { 7 | { ?s ?p ?o } 8 | UNION 9 | { GRAPH ?g { ?s ?p ?o } } 10 | } 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-08.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | FROM NAMED 6 | { 7 | ?s ?p ?o 8 | GRAPH ?g { ?s ?q ?v } 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-09.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | FROM NAMED { 6 | ?s ?p ?o 7 | GRAPH ?g { ?s ?q ?v } 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-09b.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | FROM NAMED { 6 | ?s ?p ?o 7 | GRAPH ?g { ?s ?q ?v } 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-10.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | FROM NAMED 6 | { 7 | ?s ?p ?o 8 | GRAPH ?g { ?s ?q ?v } 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-10b.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | FROM NAMED 6 | { 7 | ?s ?p ?o 8 | GRAPH ?g { ?s ?q ?v } 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/dataset/dataset-11.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | FROM 5 | FROM NAMED 6 | FROM NAMED 7 | FROM NAMED 8 | FROM NAMED 9 | { 10 | { ?s ?p ?o } 11 | UNION 12 | { GRAPH ?g { ?s ?p ?o } } 13 | } 14 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/distinct/data-node.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x1 :p1 :z1 . 5 | :x1 :p1 _:a . 6 | 7 | :x1 :p2 :z1 . 8 | :x1 :p2 _:a . 9 | 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/distinct/data-opt.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x1 :p1 :z1 . 5 | :x1 :p1 :z2 . 6 | :x1 :p1 _:a . 7 | 8 | :x1 :p2 :z1 . 9 | :x1 :p2 :z2 . 10 | :x1 :p2 _:a . 11 | 12 | :z1 :q :r . 13 | _:a :q :s . 14 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/distinct/data-star.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x1 :p "abc" . 5 | :x1 :q "abc" . 6 | :x2 :p "abc" . 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/distinct/distinct-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT DISTINCT ?v 5 | { 6 | ?x ?p ?v . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/distinct/distinct-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT DISTINCT ?v 5 | { 6 | :x1 ?p ?o 7 | OPTIONAL { ?o :q ?v } 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/distinct/distinct-star-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | SELECT DISTINCT * 4 | WHERE { 5 | { ?s :p ?o } UNION { ?s :q ?o } 6 | } 7 | 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/distinct/no-distinct-1.rq: -------------------------------------------------------------------------------- 1 | SELECT ?v 2 | { 3 | ?x ?p ?v . 4 | } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/distinct/no-distinct-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT ?v 5 | { 6 | :x1 ?p ?o 7 | OPTIONAL { ?o :q ?v } 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/data-langMatches-de.ttl: -------------------------------------------------------------------------------- 1 | # data-langMatches-de.ttl 2 | # $Id: data-langMatches-de.ttl,v 1.2 2007/08/11 18:30:56 eric Exp $ 3 | 4 | @prefix : . 5 | 6 | :x :p3 "abc"@de . 7 | :x :p4 "abc"@de-de . 8 | :x :p5 "abc"@de-latn-de . 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/data-langMatches.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | 3 | :x :p1 "abc" . 4 | :x :p2 . 5 | :x :p3 "abc"@en . 6 | :x :p4 "abc"@en-gb . 7 | :x :p5 "abc"@fr . 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/lang-case-sensitivity-eq.rq: -------------------------------------------------------------------------------- 1 | # Test: 'xyz'@en = 'xyz'@EN 2 | # $Id: lang-case-sensitivity-eq.rq,v 1.1 2007/06/24 23:15:38 lfeigenb Exp $ 3 | 4 | PREFIX : 5 | 6 | SELECT * 7 | { 8 | ?x1 :p ?v1 . 9 | ?x2 :p ?v2 . 10 | FILTER ( ?v1 = ?v2 ) 11 | } 12 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/lang-case-sensitivity.ttl: -------------------------------------------------------------------------------- 1 | # Data: minimal test of plain literal language sensitivity 2 | # $Id: lang-case-sensitivity.ttl,v 1.1 2007/06/24 23:15:38 lfeigenb Exp $ 3 | 4 | @prefix : . 5 | 6 | :x2 :p "xyz"@en . 7 | :x3 :p "xyz"@EN . 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-blank-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER isBlank(?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-datatype-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( datatype(?v) = xsd:double ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-datatype-2.rq: -------------------------------------------------------------------------------- 1 | # Which literals have a datatype and which are errors. 2 | 3 | PREFIX : 4 | PREFIX xsd: 5 | 6 | SELECT ?x 7 | { ?x :p ?v . 8 | FILTER( datatype(?v) != ) 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-datatype-3.rq: -------------------------------------------------------------------------------- 1 | # Whichliterals have xsd:string as a datatype 2 | 3 | PREFIX : 4 | PREFIX xsd: 5 | 6 | SELECT ?x 7 | { ?x :p ?v . 8 | FILTER( datatype(?v) = xsd:string ) 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-iri-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER isIRI(?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-isliteral-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER isLiteral(?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-lang-1.rq: -------------------------------------------------------------------------------- 1 | # Test which things have a lang tag of some form. 2 | 3 | PREFIX : 4 | PREFIX xsd: 5 | 6 | SELECT ?x 7 | { ?x :p ?v . 8 | FILTER ( lang(?v) != '@NotALangTag@' ) 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-lang-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT ?x 5 | { ?x :p ?v . 6 | FILTER ( lang(?v) = '' ) 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-lang-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT ?x 5 | { ?x :p "string"@EN 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-langMatches-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { :x ?p ?v . FILTER langMatches(lang(?v), "en-GB") . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-langMatches-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { :x ?p ?v . FILTER langMatches(lang(?v), "en") . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-langMatches-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { :x ?p ?v . FILTER langMatches(lang(?v), "*") . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-langMatches-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { :x ?p ?v . FILTER (! langMatches(lang(?v), "*")) . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-langMatches-de-de.rq: -------------------------------------------------------------------------------- 1 | # q-langMatches-de-de.rq 2 | # $Id: q-langMatches-de-de.rq,v 1.1 2007/08/11 18:32:04 eric Exp $ 3 | 4 | PREFIX : 5 | 6 | SELECT * 7 | { :x ?p ?v . FILTER langMatches(lang(?v), "de-de") . } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-str-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( str(?v) = "1" ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-str-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( str(?v) = "01" ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-str-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( str(?v) = "zzz" ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-str-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( str(?v) = "" ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/q-uri-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x ?v 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER isURI(?v) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/sameTerm-eq.rq: -------------------------------------------------------------------------------- 1 | # Test: sameTerm and eq 2 | # $Id: sameTerm-eq.rq,v 1.1 2007/08/31 14:01:57 eric Exp $ 3 | 4 | PREFIX : 5 | 6 | SELECT * 7 | { 8 | ?x1 :p ?v1 . 9 | ?x2 :p ?v2 . 10 | FILTER ( sameTerm(?v1, ?v2) && ?v1 = ?v2 ) 11 | } 12 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/sameTerm-not-eq.rq: -------------------------------------------------------------------------------- 1 | # Test: !sameTerm and eq 2 | # $Id: sameTerm-not-eq.rq,v 1.1 2007/08/31 14:01:57 eric Exp $ 3 | 4 | PREFIX : 5 | 6 | SELECT * 7 | { 8 | ?x1 :p ?v1 . 9 | ?x2 :p ?v2 . 10 | FILTER ( !sameTerm(?v1, ?v2) && ?v1 = ?v2 ) 11 | } 12 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-builtin/sameTerm.rq: -------------------------------------------------------------------------------- 1 | # Test: sameTerm 2 | # $Id: sameTerm.rq,v 1.1 2007/08/31 14:01:57 eric Exp $ 3 | 4 | PREFIX : 5 | 6 | SELECT * 7 | { 8 | ?x1 :p ?v1 . 9 | ?x2 :p ?v2 . 10 | FILTER sameTerm(?v1, ?v2) 11 | } 12 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( ?v = 1 ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( ?v = 1.0e0 ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( ?v = "1" ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( ?v = "zzz" ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-5.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( ?v = :z ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-graph-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p 1 . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-graph-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p 1.0e0 . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-graph-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p "1" 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-graph-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p "zzz" . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq-graph-5.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x 4 | WHERE 5 | { ?x :p ?v . 6 | FILTER ( ?v = :z ) . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq2-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?v1 ?v2 4 | WHERE 5 | { ?x1 :p ?v1 . 6 | ?x2 :p ?v2 . 7 | FILTER ( ?v1 = ?v2 ) . 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq2-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?v1 ?v2 4 | WHERE 5 | { ?x1 :p ?v1 . 6 | ?x2 :p ?v2 . 7 | FILTER ( ?v1 != ?v2 ) . 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-equals/query-eq2-graph-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | PREFIX : 3 | SELECT ?x1 ?x2 ?v 4 | WHERE 5 | { ?x1 :p ?v . 6 | ?x2 :p ?v . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-ops/data.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x1 :p "1"^^xsd:integer . 5 | :x2 :p "2"^^xsd:integer . 6 | :x3 :p "3"^^xsd:integer . 7 | :x4 :p "4"^^xsd:integer . 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-ops/query-ge-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?s WHERE { 3 | ?s :p ?o . 4 | FILTER(?o >= 3) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-ops/query-le-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?s WHERE { 3 | ?s :p ?o . 4 | FILTER(?o <= 2) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-ops/query-minus-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?s WHERE { 3 | ?s :p ?o . 4 | ?s2 :p ?o2 . 5 | FILTER(?o - ?o2 = 3) . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-ops/query-mul-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?s WHERE { 3 | ?s :p ?o . 4 | ?s2 :p ?o2 . 5 | FILTER(?o * ?o2 = 4) . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-ops/query-plus-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?s WHERE { 3 | ?s :p ?o . 4 | ?s2 :p ?o2 . 5 | FILTER(?o + ?o2 = 3) . 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-ops/query-unminus-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?s WHERE { 3 | ?s :p ?o . 4 | FILTER(-?o = -2) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/expr-ops/query-unplus-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?s WHERE { 3 | ?s :p ?o . 4 | FILTER(?o = +3) . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/foo: -------------------------------------------------------------------------------- 1 | feoiwf 2 | 4 3 | 4 | 121 fjewofowsss 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/data-g1.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :p "1"^^xsd:integer . 5 | :a :p "9"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/data-g2.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x :q "2"^^xsd:integer . 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/data-g3-dup.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | _:x :p "1"^^xsd:integer . 5 | _:a :p "9"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/data-g3.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | _:x :p "1"^^xsd:integer . 5 | _:a :p "9"^^xsd:integer . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/data-g4.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | _:x :q "2"^^xsd:integer . 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * { ?s ?p ?o } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * { ?s ?p ?o } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * { 4 | GRAPH ?g { ?s ?p ?o } 5 | } 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * { 4 | GRAPH ?g { ?s ?p ?o } 5 | } 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * { ?s ?p ?o } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-06.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * { 4 | GRAPH ?g { ?s ?p ?o } 5 | } 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-07.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | { ?s ?p ?o } 6 | UNION 7 | { GRAPH ?g { ?s ?p ?o } } 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-08.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | ?s ?p ?o 6 | GRAPH ?g { ?s ?q ?v } 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-09.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | ?s ?p ?o 6 | GRAPH ?g { ?s ?q ?v } 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-10.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | ?s ?p ?o 6 | GRAPH ?g { ?s ?q ?v } 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/graph/graph-11.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | { 5 | { ?s ?p ?o } 6 | UNION 7 | { GRAPH ?g { ?s ?p ?o } } 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/i18n/kanji-01.rq: -------------------------------------------------------------------------------- 1 | # $Id: kanji-01.rq,v 1.3 2005/11/06 08:27:50 eric Exp $ 2 | # test kanji QNames 3 | PREFIX foaf: 4 | PREFIX 食: 5 | SELECT ?name ?food WHERE { 6 | [ foaf:name ?name ; 7 | 食:食べる ?food ] . } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/i18n/kanji-02.rq: -------------------------------------------------------------------------------- 1 | # $Id: kanji-02.rq,v 1.4 2005/11/06 08:27:50 eric Exp $ 2 | # test wide spaces 3 | PREFIX foaf: 4 | PREFIX 食: 5 | SELECT ?name WHERE { 6 | [ foaf:name ?name ; 7 | 食:食べる 食:海老 ] . } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/i18n/normalization-01.rq: -------------------------------------------------------------------------------- 1 | # Figure out what happens with normalization form C. 2 | PREFIX foaf: 3 | PREFIX HR: 4 | SELECT ?name 5 | WHERE { [ foaf:name ?name; 6 | HR:resumé ?resume ] . } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/i18n/normalization-02.rq: -------------------------------------------------------------------------------- 1 | # Example 1 from 2 | # http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 3 | # $Id: normalization-02.rq,v 1.1 2005/08/09 14:35:26 eric Exp $ 4 | PREFIX : 5 | PREFIX p1: 6 | 7 | SELECT ?S WHERE { ?S :p p1:xyz } 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/i18n/normalization-02.ttl: -------------------------------------------------------------------------------- 1 | # Example 1 from 2 | # http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 3 | # $Id: normalization-02.ttl,v 1.1 2005/08/09 14:35:26 eric Exp $ 4 | @prefix : . 5 | 6 | :s1 :p . 7 | :s2 :p . 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/i18n/normalization-03.rq: -------------------------------------------------------------------------------- 1 | # Example 2 from 2 | # http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 3 | # $Id: normalization-03.rq,v 1.1 2005/08/09 14:35:26 eric Exp $ 4 | PREFIX : 5 | PREFIX p2: 6 | 7 | SELECT ?S WHERE { ?S :p p2:abc } 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/date-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * 5 | { 6 | ?x :r ?v . 7 | FILTER ( ?v = "2006-08-23"^^xsd:date ) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/date-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * 5 | { 6 | ?x :r ?v . 7 | FILTER ( ?v != "2006-08-23"^^xsd:date ) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/date-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * 5 | { 6 | ?x :r ?v . 7 | FILTER ( ?v > "2006-08-22"^^xsd:date ) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/date-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT ?x ?date 5 | { 6 | ?x :s ?date . 7 | FILTER ( datatype(?date) = xsd:date ) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/open-cmp-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT ?x ?v1 ?v2 5 | { 6 | ?x :p [ :v1 ?v1 ; :v2 ?v2 ] . 7 | FILTER ( ?v1 < ?v2 || ?v1 > ?v2 ) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/open-cmp-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT ?x ?v1 ?v2 5 | { 6 | ?x :p [ :v1 ?v1 ; :v2 ?v2 ] . 7 | FILTER ( ?v1 < ?v2 || ?v1 = ?v2 || ?v1 > ?v2 ) 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/open-eq-02.rq: -------------------------------------------------------------------------------- 1 | # Test matching in a graph pattern 2 | # Unknown type 3 | 4 | PREFIX : 5 | PREFIX t: 6 | 7 | SELECT * 8 | { ?x :p "a"^^t:type1 } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/open-eq-07.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * 5 | { 6 | ?x1 :p ?v1 . 7 | ?x2 :p ?v2 . 8 | FILTER ( ?v1 = ?v2 ) 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/open-eq-08.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * 5 | { 6 | ?x1 :p ?v1 . 7 | ?x2 :p ?v2 . 8 | FILTER ( ?v1 != ?v2 ) 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/open-eq-09.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * 5 | { 6 | ?x :p ?v1 . 7 | ?y :q ?v2 . 8 | FILTER ( ?v1 = ?v2 ) 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/open-eq-10.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * 5 | { 6 | ?x :p ?v1 . 7 | ?y :q ?v2 . 8 | FILTER ( ?v1 != ?v2 ) 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/open-eq-11.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT * 5 | { 6 | ?x :p ?v1 . 7 | ?y :q ?v2 . 8 | FILTER ( ?v1 != ?v2 || ?v1 = ?v2 ) 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/open-eq-12.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT ?x ?v1 ?y ?v2 5 | { 6 | ?x :p ?v1 . 7 | ?y :p ?v2 . 8 | OPTIONAL { ?y :p ?v3 . FILTER( ?v1 != ?v3 || ?v1 = ?v3 )} 9 | FILTER (!bound(?v3)) 10 | } 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/open-world/sameTerm.ttl: -------------------------------------------------------------------------------- 1 | # Data: sameTerm tests 2 | # $Id: sameTerm.ttl,v 1.1 2007/06/18 20:07:56 lfeigenb Exp $ 3 | 4 | @prefix : . 5 | @prefix xsd: . 6 | 7 | :x1 :p "xyz" . 8 | :x4 :p "xyz"^^xsd:string . 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/optional-filter/expr-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc: 2 | PREFIX x: 3 | SELECT ?title ?price 4 | WHERE 5 | { ?book dc:title ?title . 6 | OPTIONAL 7 | { ?book x:price ?price . 8 | FILTER (?price < 15) . 9 | } . 10 | } 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/optional-filter/expr-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc: 2 | PREFIX x: 3 | SELECT ?title ?price 4 | WHERE 5 | { ?book dc:title ?title . 6 | OPTIONAL 7 | { ?book x:price ?price } . 8 | FILTER (?price < 15) . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/optional-filter/expr-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc: 2 | PREFIX x: 3 | SELECT ?title ?price 4 | WHERE 5 | { ?book dc:title ?title . 6 | OPTIONAL 7 | { ?book x:price ?price } . 8 | FILTER ( ( ! bound(?price) ) || ( ?price < 15 ) ) . 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/optional-filter/expr-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX dc: 2 | PREFIX x: 3 | SELECT ?title ?price 4 | WHERE 5 | { ?book dc:title ?title . 6 | OPTIONAL 7 | { ?book x:price ?price . 8 | FILTER (?price < 15 && ?title = "TITLE 2") . 9 | } . 10 | } 11 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/optional/q-opt-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | 3 | SELECT ?mbox ?name 4 | { 5 | ?x foaf:mbox ?mbox . 6 | OPTIONAL { ?x foaf:name ?name } . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/optional/q-opt-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | 3 | SELECT ?mbox ?name ?nick 4 | { 5 | ?x foaf:mbox ?mbox . 6 | OPTIONAL { ?x foaf:name ?name } . 7 | OPTIONAL { ?x foaf:nick ?nick } . 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/optional/q-opt-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | 3 | SELECT ?mbox ?name 4 | { 5 | { ?x foaf:mbox ?mbox } 6 | UNION 7 | { ?x foaf:mbox ?mbox . ?x foaf:name ?name } 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/reduced/reduced-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | SELECT REDUCED * 4 | WHERE { 5 | { ?s :p ?o } UNION { ?s :q ?o } 6 | } 7 | 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/reduced/reduced-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | 4 | SELECT REDUCED ?v 5 | { 6 | ?x ?p ?v . 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/reduced/reduced-star.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :x1 :p "abc" . 5 | :x1 :q "abc" . 6 | :x2 :p "abc" . 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/regex/regex-data-01.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: . 2 | @prefix ex: . 3 | 4 | ex:foo rdf:value "abcDEFghiJKL" , "ABCdefGHIjkl", "0123456789", 5 | , "http://example.com/literal" . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/regex/regex-query-001.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX ex: 3 | 4 | SELECT ?val 5 | WHERE { 6 | ex:foo rdf:value ?val . 7 | FILTER regex(?val, "GHI") 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/regex/regex-query-002.rq: -------------------------------------------------------------------------------- 1 | PREFIX ex: 2 | PREFIX rdf: 3 | 4 | SELECT ?val 5 | WHERE { 6 | ex:foo rdf:value ?val . 7 | FILTER regex(?val, "DeFghI", "i") 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/regex/regex-query-003.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX ex: 3 | 4 | SELECT ?val 5 | WHERE { 6 | ex:foo rdf:value ?val . 7 | FILTER regex(?val, "example\\.com") 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/regex/regex-query-004.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX ex: 3 | SELECT ?val 4 | WHERE { 5 | ex:foo rdf:value ?val . 6 | FILTER regex(str(?val), "example\\.com") 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | LIMIT 1 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | LIMIT 100 7 | 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | LIMIT 0 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT DISTINCT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | LIMIT 100 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-10.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | OFFSET 1 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-11.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | OFFSET 0 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-12.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | OFFSET 100 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-13.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT DISTINCT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | OFFSET 2 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-20.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | LIMIT 1 7 | OFFSET 1 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-21.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | OFFSET 1 7 | LIMIT 2 -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-22.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] ?p ?v } 5 | ORDER BY ?v 6 | OFFSET 100 7 | LIMIT 1 -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-23.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | OFFSET 2 7 | LIMIT 5 -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-24.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT DISTINCT ?v 4 | WHERE { [] :num ?v } 5 | ORDER BY ?v 6 | OFFSET 2 7 | LIMIT 5 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-results-03.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix rs: . 3 | @prefix rdf: . 4 | 5 | [] rdf:type rs:ResultSet ; 6 | rs:resultVariable "v" . 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-results-12.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix rs: . 3 | @prefix rdf: . 4 | 5 | [] rdf:type rs:ResultSet ; 6 | rs:resultVariable "v" . 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/solution-seq/slice-results-22.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix rs: . 3 | @prefix rdf: . 4 | 5 | [] rdf:type rs:ResultSet ; 6 | rs:resultVariable "v" . 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/data-sort-1.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: . 2 | @prefix foaf: . 3 | 4 | _:a foaf:name "Eve". 5 | _:b foaf:name "Alice" . 6 | _:c foaf:name "Fred" . 7 | _:e foaf:name "Bob" . 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/data-sort-builtin.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :s1 :p "2"^^xsd:integer . 5 | :s2 :p "300"^^xsd:integer . 6 | :s3 :p "10"^^xsd:integer . 7 | 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/data-sort-function.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | 3 | :s1 :p "2" . 4 | :s2 :p "300" . 5 | :s3 :p "10" . 6 | 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/data-sort-numbers.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | @prefix xsd: . 3 | 4 | :s1 :p "1"^^xsd:integer; :q "2"^^xsd:integer . 5 | :s2 :p "10"^^xsd:integer; :q "20"^^xsd:integer . 6 | :s3 :p "100"^^xsd:integer; :q "200"^^xsd:integer . 7 | 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-1.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name 3 | WHERE { ?x foaf:name ?name } 4 | ORDER BY ?name 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-10.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name 3 | WHERE { ?x foaf:name ?name } 4 | ORDER BY DESC(?name) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-2.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name 3 | WHERE { ?x foaf:name ?name } 4 | ORDER BY DESC(?name) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-3.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name ?mbox 3 | WHERE { ?x foaf:name ?name . 4 | OPTIONAL { ?x foaf:mbox ?mbox } 5 | } 6 | ORDER BY ASC(?mbox) 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-4.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX ex: 3 | 4 | SELECT ?name ?emp 5 | WHERE { ?x foaf:name ?name ; 6 | ex:empId ?emp 7 | } 8 | ORDER BY ASC(?emp) 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-5.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | PREFIX ex: 3 | 4 | SELECT ?name ?emp 5 | WHERE { ?x foaf:name ?name ; 6 | ex:empId ?emp 7 | } 8 | ORDER BY ?name DESC(?emp) 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-6.rq: -------------------------------------------------------------------------------- 1 | PREFIX ex: 2 | 3 | SELECT ?address 4 | WHERE { ?x ex:address ?address } 5 | ORDER BY ASC(?address) 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-9.rq: -------------------------------------------------------------------------------- 1 | PREFIX foaf: 2 | SELECT ?name 3 | WHERE { ?x foaf:name ?name } 4 | ORDER BY ?name 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-builtin.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?s WHERE { 3 | ?s :p ?o . 4 | } ORDER BY str(?o) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-function.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | SELECT ?s WHERE { 4 | ?s :p ?o . 5 | } ORDER BY xsd:integer(?o) 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/sort/query-sort-numbers.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?s WHERE { 3 | ?s :p ?o1 ; :q ?o2 . 4 | } ORDER BY (?o1 + ?o2) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-basic-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE { } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-basic-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * {} 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-basic-03.rq: -------------------------------------------------------------------------------- 1 | # No trailing dot 2 | PREFIX : 3 | SELECT * 4 | WHERE { ?x ?y ?z } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-basic-04.rq: -------------------------------------------------------------------------------- 1 | # With trailing dot 2 | SELECT * 3 | WHERE { ?x ?y ?z . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-basic-05.rq: -------------------------------------------------------------------------------- 1 | # Two triples : no trailing dot 2 | SELECT * 3 | WHERE { ?x ?y ?z . ?a ?b ?c } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-basic-06.rq: -------------------------------------------------------------------------------- 1 | # Two triples : with trailing dot 2 | SELECT * 3 | WHERE { ?x ?y ?z . ?a ?b ?c . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-bnodes-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { [:p :q ] } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-bnodes-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { [] :p :q } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-bnodes-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { [ ?x ?y ] :p [ ?pa ?b ] } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-bnodes-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE { [ :p :q ; ] } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-bnodes-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE { _:a :p1 :q1 . 4 | _:a :p2 :q2 . 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-expr-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE { ?s ?p ?o . FILTER (?o) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-expr-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE { ?s ?p ?o . FILTER REGEX(?o, "foo") } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-expr-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE { ?s ?p ?o . FILTER REGEX(?o, "foo", "i") } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-expr-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX xsd: 2 | SELECT * 3 | WHERE { ?s ?p ?o . FILTER xsd:integer(?o) } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-expr-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX xsd: 3 | SELECT * 4 | WHERE { ?s ?p ?o . FILTER :myFunc(?s,?o) } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-forms-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { ( [ ?x ?y ] ) :p ( [ ?pa ?b ] 57 ) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-forms-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { ( [] [] ) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-limit-offset-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?s ?p ?o } 4 | ORDER BY ?o 5 | LIMIT 5 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-limit-offset-02.rq: -------------------------------------------------------------------------------- 1 | # LIMIT and OFFSET can be in either order 2 | PREFIX : 3 | SELECT * 4 | { ?s ?p ?o } 5 | ORDER BY ?o 6 | LIMIT 5 7 | OFFSET 3 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-limit-offset-03.rq: -------------------------------------------------------------------------------- 1 | # LIMIT and OFFSET can be in either order 2 | PREFIX : 3 | SELECT * 4 | { ?s ?p ?o } 5 | ORDER BY ?o 6 | OFFSET 3 7 | LIMIT 5 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-limit-offset-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?s ?p ?o } 4 | ORDER BY ?o 5 | OFFSET 3 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lists-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { ( ?x ) :p ?z } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lists-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { ?x :p ( ?z ) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lists-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { ( ?z ) } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lists-04.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { ( ( ?z ) ) } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lists-05.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { ( ( ) ) } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-01.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p "x" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-02.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p 'x' } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-03.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p "x\"y'z" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-04.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p 'x"y\'z' } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-05.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p "x\"" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-06.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p 'x\'' } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-07.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p 123 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-08.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p 123. . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-09.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p """Long 4 | "" 5 | Literal 6 | """ } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-10.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p '''Long 4 | '' """ 5 | Literal''' } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-11.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p """Long""\"Literal""" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-12.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p '''Long''\'Literal''' } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-13.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p """Long\"""Literal""" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-14.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p '''Long\'''Literal''' } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-15.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p '''Long '' Literal''' } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-16.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p '''Long ' Literal''' } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-17.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p '''Long''\\Literal with '\\ single quotes ''' } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-18.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p """Long "" Literal""" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-19.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p """Long " Literal""" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-lit-20.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * WHERE { :x :p """Long""\\Literal with "\\ single quotes""" } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-order-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?s ?p ?o } 4 | ORDER BY ?o 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-order-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?s ?p ?o } 4 | ORDER BY (?o+5) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-order-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?s ?p ?o } 4 | ORDER BY ASC(?o) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-order-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?s ?p ?o } 4 | ORDER BY DESC(?o) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-order-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?s ?p ?o } 4 | ORDER BY DESC(:func(?s, ?o)) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-order-06.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?s ?p ?o } 4 | ORDER BY 5 | DESC(?o+57) :func2(?o) ASC(?s) 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-order-07.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?s ?p ?o } 4 | ORDER BY str(?o) 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-pat-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-pat-02.rq: -------------------------------------------------------------------------------- 1 | # No DOT after optional 2 | PREFIX : 3 | SELECT * 4 | { ?a :b :c OPTIONAL{:x :y :z} :x ?y ?z } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-pat-03.rq: -------------------------------------------------------------------------------- 1 | # No DOT between non-triples patterns 2 | PREFIX : 3 | SELECT * 4 | { ?a :b :c 5 | OPTIONAL{:x :y :z} 6 | { :x1 :y1 :z1 } UNION { :x2 :y2 :z2 } 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-pat-04.rq: -------------------------------------------------------------------------------- 1 | # No DOT between non-triples patterns 2 | PREFIX : 3 | SELECT * 4 | { 5 | OPTIONAL{:x :y :z} 6 | ?a :b :c 7 | { :x1 :y1 :z1 } UNION { :x2 :y2 :z2 } 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-qname-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { ?x :p ?z } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-qname-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE { :x :p :z . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-qname-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE { :_1 :p.rdf :z.z . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-qname-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | PREFIX a: 3 | SELECT * 4 | WHERE { : a: :a . : : : . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-qname-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : <> 2 | SELECT * 3 | WHERE { : : : . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-qname-06.rq: -------------------------------------------------------------------------------- 1 | PREFIX : <#> 2 | SELECT * 3 | WHERE { : : : . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-qname-07.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | SELECT * 4 | WHERE { : : : . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-qname-08.rq: -------------------------------------------------------------------------------- 1 | BASE 2 | PREFIX : <#> 3 | PREFIX x.y: 4 | SELECT * 5 | WHERE { :a.b x.y: : . } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-01.rq: -------------------------------------------------------------------------------- 1 | # Operator 2 | PREFIX : 3 | SELECT * 4 | { OPTIONAL { } } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-02.rq: -------------------------------------------------------------------------------- 1 | # Operator 2 | PREFIX : 3 | SELECT * 4 | { OPTIONAL { :a :b :c } } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-03.rq: -------------------------------------------------------------------------------- 1 | # Triple, no DOT, operator 2 | PREFIX : 3 | SELECT * 4 | { :p :q :r OPTIONAL { :a :b :c } } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-05.rq: -------------------------------------------------------------------------------- 1 | # Triple, DOT, operator 2 | PREFIX : 3 | SELECT * 4 | { :p :q :r . OPTIONAL { :a :b :c } } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-06.rq: -------------------------------------------------------------------------------- 1 | # Triple, DOT, operator, DOT 2 | PREFIX : 3 | SELECT * 4 | { :p :q :r . OPTIONAL { :a :b :c } . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-07.rq: -------------------------------------------------------------------------------- 1 | # Operator, no DOT 2 | PREFIX : 3 | SELECT * 4 | { OPTIONAL { :a :b :c } } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-08.rq: -------------------------------------------------------------------------------- 1 | # Operator, DOT 2 | PREFIX : 3 | SELECT * 4 | { OPTIONAL { :a :b :c } . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-09.rq: -------------------------------------------------------------------------------- 1 | # Operator, triple 2 | PREFIX : 3 | SELECT * 4 | { OPTIONAL { :a :b :c } ?x ?y ?z } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-10.rq: -------------------------------------------------------------------------------- 1 | # Operator, DOT triple 2 | PREFIX : 3 | SELECT * 4 | { OPTIONAL { :a :b :c } . ?x ?y ?z } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-11.rq: -------------------------------------------------------------------------------- 1 | # Triple, semi, operator 2 | PREFIX : 3 | SELECT * 4 | { :p :q :r ; OPTIONAL { :a :b :c } } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-12.rq: -------------------------------------------------------------------------------- 1 | # Triple, semi, DOT, operator 2 | PREFIX : 3 | SELECT * 4 | { :p :q :r ; . OPTIONAL { :a :b :c } } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-13.rq: -------------------------------------------------------------------------------- 1 | # Two elements in the group 2 | PREFIX : 3 | SELECT * 4 | { :p :q :r . OPTIONAL { :a :b :c } 5 | :p :q :r . OPTIONAL { :a :b :c } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-struct-14.rq: -------------------------------------------------------------------------------- 1 | # Two elements in the group 2 | PREFIX : 3 | SELECT * 4 | { :p :q :r OPTIONAL { :a :b :c } 5 | :p :q :r OPTIONAL { :a :b :c } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-union-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { 4 | { ?s ?p ?o } UNION { ?a ?b ?c } 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql1/syntax-union-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | { 4 | { ?s ?p ?o } UNION { ?a ?b ?c } UNION { ?r ?s ?t } 5 | } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-bnode-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { [] :p [] } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-bnode-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | # Tab 3 | SELECT * WHERE { [ ] :p [ 4 | ] } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-bnode-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { [ :p :q 3 | ] } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-dataset-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?x 3 | FROM 4 | WHERE {} 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-dataset-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?x 3 | FROM NAMED 4 | WHERE {} 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-dataset-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?x 3 | FROM NAMED :graph1 4 | FROM NAMED :graph2 5 | WHERE {} 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-dataset-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT ?x 3 | FROM :g1 4 | FROM :g2 5 | FROM NAMED :graph1 6 | FROM NAMED :graph2 7 | WHERE {} 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-esc-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE {

"\t" } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-esc-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE {

"x\t" } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-esc-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE {

"\tx" } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-esc-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE { <\u0078> :\u0070 ?xx\u0078 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-esc-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | # Comments can contain \ u 4 | # <\u0078> :\u0070 ?xx\u0078 5 | WHERE { <\u0078> :\u0070 ?xx\u0078 } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-ask-02.rq: -------------------------------------------------------------------------------- 1 | ASK {} 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-construct01.rq: -------------------------------------------------------------------------------- 1 | CONSTRUCT { ?s . ?s ?o } WHERE {?s ?p ?o} 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-construct02.rq: -------------------------------------------------------------------------------- 1 | CONSTRUCT { ?s . ?s ?o .} WHERE {?s ?p ?o} 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-construct03.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | CONSTRUCT { [] rdf:subject ?s ; 3 | rdf:predicate ?p ; 4 | rdf:object ?o } 5 | WHERE {?s ?p ?o} 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-construct04.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | CONSTRUCT { [] rdf:subject ?s ; 3 | rdf:predicate ?p ; 4 | rdf:object ?o . } 5 | WHERE {?s ?p ?o} 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-construct06.rq: -------------------------------------------------------------------------------- 1 | CONSTRUCT {} WHERE {} 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-describe01.rq: -------------------------------------------------------------------------------- 1 | DESCRIBE 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-describe02.rq: -------------------------------------------------------------------------------- 1 | DESCRIBE ?u WHERE { ?u . } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-select-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-form-select-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * { } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-function-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX q: 2 | SELECT * WHERE { FILTER (q:name()) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-function-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX q: 2 | SELECT * WHERE { FILTER (q:name( )) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-function-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX q: 2 | SELECT * WHERE { FILTER (q:name( 3 | )) } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-function-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX q: 2 | SELECT * WHERE { FILTER (q:name(1 3 | )) . FILTER (q:name(1,2)) . FILTER (q:name(1 4 | ,2))} 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-01.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-02.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { _:x } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { 1 } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-04.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { +11 } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-05.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { -1 } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-06.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { 1.0 } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-07.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { +1.0 } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-08.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { -1.0 } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-09.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { 1.0e0 } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-10.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { +1.0e+1 } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-11.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE { -1.0e-1 } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-12.rq: -------------------------------------------------------------------------------- 1 | # Legal, if unusual, IRIs 2 | SELECT * WHERE { } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-13.rq: -------------------------------------------------------------------------------- 1 | # Legal, if unusual, IRIs 2 | BASE 3 | SELECT * WHERE { <#x> } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-general-14.rq: -------------------------------------------------------------------------------- 1 | # Legal, if unusual, IRIs 2 | BASE 3 | SELECT * WHERE { <¶m=value> } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-graph-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | GRAPH ?g { } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-graph-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | GRAPH :a { } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-graph-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | GRAPH ?g { :x :b ?a } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-graph-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | :x :p :z 6 | GRAPH ?g { :x :b ?a } 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-graph-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | :x :p :z 6 | GRAPH ?g { :x :b ?a . GRAPH ?g2 { :x :p ?x } } 7 | } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-keywords-01.rq: -------------------------------------------------------------------------------- 1 | # use keyword FILTER as a namespace prefix 2 | PREFIX FILTER: 3 | SELECT * 4 | WHERE { ?x FILTER:foo ?z FILTER (?z) } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-keywords-02.rq: -------------------------------------------------------------------------------- 1 | # use keyword FILTER as a local name 2 | PREFIX : 3 | SELECT * 4 | WHERE { ?x :FILTER ?z FILTER (?z) } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-keywords-03.rq: -------------------------------------------------------------------------------- 1 | # use keyword UNION as a namespace prefix 2 | PREFIX UNION: 3 | SELECT * 4 | WHERE { ?x UNION:foo ?z } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-lists-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { () :p 1 } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-lists-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { ( ) :p 1 } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-lists-03.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { ( 3 | ) :p 1 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-lists-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { ( 1 2 3 | ) :p 1 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql2/syntax-lists-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { ( 1 2 3 | ) } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-01.rq: -------------------------------------------------------------------------------- 1 | # Dot after triple 2 | SELECT * WHERE 3 | { ?s ?p ?o . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-02.rq: -------------------------------------------------------------------------------- 1 | # No dot after triple 2 | SELECT * WHERE 3 | { ?s ?p ?o } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * WHERE 2 | { ?s ?p ?o . ?s ?p ?o . } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-04.rq: -------------------------------------------------------------------------------- 1 | # No dot 2 | SELECT * WHERE 3 | { ?s ?p ?o . ?s ?p ?o } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-05.rq: -------------------------------------------------------------------------------- 1 | # DOT after non-triples 2 | SELECT * WHERE 3 | { FILTER (?o>5) . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-06.rq: -------------------------------------------------------------------------------- 1 | # DOT after non-triples 2 | SELECT * WHERE 3 | { FILTER (?o>5) . ?s ?p ?o } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-07.rq: -------------------------------------------------------------------------------- 1 | # Trailing ; 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s :p :o ; FILTER(?x) } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-08.rq: -------------------------------------------------------------------------------- 1 | # Broken ; 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s :p :o ; . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-01.rq: -------------------------------------------------------------------------------- 1 | # More a test that bad syntax tests work! 2 | PREFIX ex: 3 | SELECT * 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-02.rq: -------------------------------------------------------------------------------- 1 | # Missing DOT, 2 triples 2 | PREFIX : 3 | SELECT * 4 | { :s1 :p1 :o1 :s2 :p2 :o2 . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-03.rq: -------------------------------------------------------------------------------- 1 | # Missing DOT between triples 2 | PREFIX : 3 | SELECT * 4 | { :s1 :p1 :o1 :s2 :p2 :o2 . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-04.rq: -------------------------------------------------------------------------------- 1 | # Missing DOT after ; between triples 2 | PREFIX : 3 | SELECT * 4 | { :s1 :p1 :o1 ; :s2 :p2 :o2 . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-05.rq: -------------------------------------------------------------------------------- 1 | # DOT, no triples 2 | SELECT * WHERE 3 | { . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-06.rq: -------------------------------------------------------------------------------- 1 | # DOT, no triples 2 | SELECT * WHERE 3 | { . . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-07.rq: -------------------------------------------------------------------------------- 1 | # DOT, then triples 2 | SELECT * WHERE 3 | { . ?s ?p ?o } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-08.rq: -------------------------------------------------------------------------------- 1 | # Multiple DOTs 2 | SELECT * WHERE 3 | { ?s ?p ?o . . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-09.rq: -------------------------------------------------------------------------------- 1 | # Multiple DOTs 2 | SELECT * WHERE 3 | { ?s ?p ?o .. } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-10.rq: -------------------------------------------------------------------------------- 1 | # Multiple DOTs 2 | SELECT * WHERE 3 | { ?s ?p ?o . . ?s1 ?p1 ?o1 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-11.rq: -------------------------------------------------------------------------------- 1 | # Multiple DOTs 2 | SELECT * WHERE 3 | { ?s ?p ?o .. ?s1 ?p1 ?o1 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-12.rq: -------------------------------------------------------------------------------- 1 | # Multiple DOTs 2 | SELECT * WHERE 3 | { ?s ?p ?o . . ?s1 ?p1 ?o1 } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-13.rq: -------------------------------------------------------------------------------- 1 | # Multiple DOTs 2 | SELECT * WHERE 3 | { ?s ?p ?o . ?s1 ?p1 ?o1 .. } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-14.rq: -------------------------------------------------------------------------------- 1 | # DOT, no triples 2 | SELECT * WHERE 3 | { . FILTER(?x) } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-15.rq: -------------------------------------------------------------------------------- 1 | # Broken ; 2 | SELECT * WHERE 3 | { ; FILTER(?x) } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-16.rq: -------------------------------------------------------------------------------- 1 | # Broken ; 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s ; :p :o } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-17.rq: -------------------------------------------------------------------------------- 1 | # Broken ; 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s :p ; } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-18.rq: -------------------------------------------------------------------------------- 1 | # Broken ; 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s :p ; FILTER(?x) } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-19.rq: -------------------------------------------------------------------------------- 1 | # Broken ; 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s :p :o . ; } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-20.rq: -------------------------------------------------------------------------------- 1 | # Broken , 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s , :p :o } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-21.rq: -------------------------------------------------------------------------------- 1 | # Broken , 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s :p , :o } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-22.rq: -------------------------------------------------------------------------------- 1 | # Broken , 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s :p , } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-23.rq: -------------------------------------------------------------------------------- 1 | # Broken , can't trail 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s :p :o , } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-24.rq: -------------------------------------------------------------------------------- 1 | # Broken , (should be ;) 2 | PREFIX : 3 | SELECT * WHERE 4 | { :s :p1 :o1 , :p2 :o2} 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-25.rq: -------------------------------------------------------------------------------- 1 | CONSTRUCT 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-26.rq: -------------------------------------------------------------------------------- 1 | # Tokenizing matters. 2 | # "longest token rule" means this isn't a "<" and "&&" 3 | PREFIX : 4 | SELECT * WHERE 5 | { FILTER (?x?y) } 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-27.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { :x [] :q } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-28.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * WHERE { :x _:a :q } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-29.rq: -------------------------------------------------------------------------------- 1 | # Syntactic blank node in a filter. 2 | SELECT * WHERE { _:x FILTER(_:x) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-30.rq: -------------------------------------------------------------------------------- 1 | # Syntactic blank node in a filter. 2 | SELECT * WHERE { _:x FILTER(_:x < 3) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-31.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | GRAPH [] { } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-bnode-dot.rq: -------------------------------------------------------------------------------- 1 | # NegativeSyntax/bnode-dot.rq 2 | SELECT * WHERE {[] . } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-bnodes-missing-pvalues-01.rq: -------------------------------------------------------------------------------- 1 | # NegativeSyntax/bnodes-missing-pvalues.rq 2 | PREFIX : 3 | SELECT * WHERE { [,] :p [;] . } 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-bnodes-missing-pvalues-02.rq: -------------------------------------------------------------------------------- 1 | # NegativeSyntax/bnodes-missing-pvalues-02.rq 2 | SELECT * WHERE {() . [,] . [,;] } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-empty-optional-01.rq: -------------------------------------------------------------------------------- 1 | # NegativeSyntax/empty-optional.rq 2 | SELECT * { OPTIONAL FILTER (?x) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-empty-optional-02.rq: -------------------------------------------------------------------------------- 1 | # NegativeSyntax/empty-optional-02.rq 2 | SELECT * { OPTIONAL GRAPH ?v OPTIONAL FILTER (?x) } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-filter-missing-parens.rq: -------------------------------------------------------------------------------- 1 | # NegativeSyntax/filter-missing-parens.rq 2 | SELECT * { ?s ?p ?o FILTER ?x } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-lone-list.rq: -------------------------------------------------------------------------------- 1 | # NegativeSyntax/lone-list.rq 2 | SELECT * WHERE { () } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-bad-lone-node.rq: -------------------------------------------------------------------------------- 1 | # NegativeSyntax/lone-node.rq 2 | SELECT * WHERE {} 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-blabel-cross-filter.rq: -------------------------------------------------------------------------------- 1 | # $Id: syn-blabel-cross-filter.rq,v 1.2 2007/04/09 21:40:22 eric Exp $ 2 | # BNode label used across a FILTER. 3 | PREFIX : 4 | 5 | ASK { _:who :homepage ?homepage 6 | FILTER REGEX(?homepage, "^http://example.org/") 7 | _:who :schoolHomepage ?schoolPage } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql3/syn-blabel-cross-graph-bad.rq: -------------------------------------------------------------------------------- 1 | # $Id: syn-blabel-cross-graph-bad.rq,v 1.2 2007/04/18 23:11:57 eric Exp $ 2 | # BNode label used across a GRAPH. 3 | PREFIX : 4 | 5 | ASK { _:who :homepage ?homepage 6 | GRAPH ?g { ?someone :made ?homepage } 7 | _:who :schoolHomepage ?schoolPage } 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-09.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | _:a ?p ?v . _:a ?q 1 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-10.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | { _:a ?p ?v . _:a ?q _:a } UNION { _:b ?q _:c } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-11.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | _:a ?p ?v . FILTER(true) . [] ?q _:a 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-bad-34.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | _:a ?p ?v . { _:a ?q 1 } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-bad-35.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | { _:a ?p ?v . } _:a ?q 1 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-bad-36.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | { _:a ?p ?v . } UNION { _:a ?q 1 } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-bad-37.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | { _:a ?p ?v . } _:a ?q 1 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-bad-38.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | SELECT * 3 | WHERE 4 | { 5 | _:a ?p ?v . OPTIONAL {_:a ?q 1 } 6 | } 7 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-bad-GRAPH-breaks-BGP.rq: -------------------------------------------------------------------------------- 1 | # bad: re-used BNode label after GRAPH 2 | # $Id: syn-bad-GRAPH-breaks-BGP.rq,v 1.1 2007/02/15 15:14:31 eric Exp $ 3 | 4 | PREFIX : 5 | SELECT * 6 | WHERE 7 | { 8 | _:a ?p ?v . GRAPH ?g { ?s ?p ?v } _:a ?q 1 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql4/syn-bad-OPT-breaks-BGP.rq: -------------------------------------------------------------------------------- 1 | # bad: re-used BNode label after OPTIONAL 2 | # $Id: syn-bad-OPT-breaks-BGP.rq,v 1.1 2007/02/15 15:14:31 eric Exp $ 3 | 4 | PREFIX : 5 | SELECT * 6 | WHERE 7 | { 8 | _:a ?p ?v . OPTIONAL { ?s ?p ?v } _:a ?q 1 9 | } 10 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql5/syntax-reduced-01.rq: -------------------------------------------------------------------------------- 1 | SELECT REDUCED * WHERE { ?x ?y ?z } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/syntax-sparql5/syntax-reduced-02.rq: -------------------------------------------------------------------------------- 1 | SELECT REDUCED ?x ?y WHERE { ?x ?y ?z } 2 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/triple-match/data-01.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | 3 | :x :p :v1 . 4 | :x :p :v2 . 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/triple-match/data-02.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | 3 | 4 | :y :y :x . 5 | :x :y :y . 6 | :y :x :y . 7 | 8 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/triple-match/data-03.ttl: -------------------------------------------------------------------------------- 1 | @prefix : . 2 | 3 | :x :p :v1.1 . 4 | :x :p :v2.1 . 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/triple-match/dawg-tp-01.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | WHERE { :x ?p ?q . } 5 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/triple-match/dawg-tp-02.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | WHERE { ?x :p ?q . } 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/triple-match/dawg-tp-03.rq: -------------------------------------------------------------------------------- 1 | SELECT * 2 | WHERE { ?a ?a ?b . } 3 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/triple-match/dawg-tp-04.rq: -------------------------------------------------------------------------------- 1 | PREFIX rdf: 2 | PREFIX foaf: 3 | 4 | SELECT ?name 5 | WHERE { 6 | ?x rdf:type foaf:Person . 7 | ?x foaf:name ?name . 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/triple-match/dawg-tp-05.rq: -------------------------------------------------------------------------------- 1 | PREFIX : 2 | 3 | SELECT * 4 | WHERE { ?x :p ?q . } 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Sparql/_files/w3c-dawg2/data-r2/x: -------------------------------------------------------------------------------- 1 | dawg-optional-complex-1 2 | dawg-optional-filter-002 3 | dawg-optional-filter-003 4 | open-eq-12 5 | dawg-bev-5 6 | dawg-bev-6 7 | dawg-bound-query-001 8 | 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Store/Adapter/Virtuoso/ResultConverter/_files/sparql-empty.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Store/Adapter/Virtuoso/ResultConverter/_files/sparql-error.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Store/Adapter/Virtuoso/ResultConverter/_files/sparql-invalid.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Syntax/_files/valid/cube.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdfs: . 2 | @prefix qb: . 3 | 4 | qb:DataSet rdfs:label "Data set"@en; 5 | . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Versioning/AuthStub.php: -------------------------------------------------------------------------------- 1 | 'http://example.org/user1/')); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Wrapper/_files/data/testResource2.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: 2 | @prefix foaf: 3 | 4 | rdf:type foaf:Person ; 5 | foaf:nick "testResource2" . 6 | -------------------------------------------------------------------------------- /tests/unit/Erfurt/Wrapper/_files/disabled/disabled.php: -------------------------------------------------------------------------------- 1 |