/** * Unit test verifies that blank nodes may not appear in a triple pattern * reference (the semantics of this are explicitly ruled out by the * extension). */ public void test_triple_ref_pattern_blankNodesAreNotAllowed_subjectPosition() throws MalformedQueryException, TokenMgrError, ParseException { final String sparql // = "prefix : <http://example.com/>\n" // + "prefix dc: <http://purl.org/dc/elements/1.1/>\n" // + "select ?src ?who {\n"// + " BIND( <<_:a :bought :sybase>> AS ?sid ) . \n"// + " ?sid dc:source ?src .\n"// + "}"; try { parse(sparql, baseURI); fail("This construction is not legal."); } catch (MalformedQueryException ex) { if (log.isInfoEnabled()) log.info("Ignoring expected exception: " + ex); } }
/** * Unit test verifies that blank nodes may not appear in a triple pattern * reference (the semantics of this are explicitly ruled out by the * extension). */ public void test_triple_ref_pattern_blankNodesAreNotAllowed_objectPosition() throws MalformedQueryException, TokenMgrError, ParseException { final String sparql // = "prefix : <http://example.com/>\n" // + "prefix dc: <http://purl.org/dc/elements/1.1/>\n" // + "select ?src ?who {\n"// + " BIND( <<:SAP :bought _:c>> AS ?sid ) . \n"// + " ?sid dc:source ?src .\n"// + "}"; try { parse(sparql, baseURI); fail("This construction is not legal."); } catch (MalformedQueryException ex) { if (log.isInfoEnabled()) log.info("Ignoring expected exception: " + ex); } }
/** * Unit test verifies that blank nodes may not appear in a triple pattern * reference (the semantics of this are explicitly ruled out by the * extension). */ public void test_triple_ref_pattern_blankNodesAreNotAllowed_objectPosition() throws MalformedQueryException, TokenMgrError, ParseException { final String sparql // = "prefix : <http://example.com/>\n" // + "prefix dc: <http://purl.org/dc/elements/1.1/>\n" // + "select ?src ?who {\n"// + " BIND( <<:SAP :bought _:c>> AS ?sid ) . \n"// + " ?sid dc:source ?src .\n"// + "}"; try { parse(sparql, baseURI); fail("This construction is not legal."); } catch (MalformedQueryException ex) { if (log.isInfoEnabled()) log.info("Ignoring expected exception: " + ex); } }
/** * Unit test verifies that blank nodes may not appear in a triple pattern * reference (the semantics of this are explicitly ruled out by the * extension). */ public void test_triple_ref_pattern_blankNodesAreNotAllowed_subjectPosition() throws MalformedQueryException, TokenMgrError, ParseException { final String sparql // = "prefix : <http://example.com/>\n" // + "prefix dc: <http://purl.org/dc/elements/1.1/>\n" // + "select ?src ?who {\n"// + " BIND( <<_:a :bought :sybase>> AS ?sid ) . \n"// + " ?sid dc:source ?src .\n"// + "}"; try { parse(sparql, baseURI); fail("This construction is not legal."); } catch (MalformedQueryException ex) { if (log.isInfoEnabled()) log.info("Ignoring expected exception: " + ex); } }