test_class.declarator: pre = new SindicePreProcessing() {
      {
        init("http://purl.org/dc/elements/1.1/isPartOf");
      }
    }
test_class.modifier: private final
test_class.original_string: private final SindicePreProcessing pre = new SindicePreProcessing() {
      {
        init("http://purl.org/dc/elements/1.1/isPartOf");
      }
    };
test_class.type: SindicePreProcessing
test_class.var_name: pre
test_class.file: sparqled/src/test/java/org/sindice/sparqled/sparql/preprocessing/TestSindicePreProcessing.java
test_class.identifier: TestSindicePreProcessing
test_case.body: @Test(expected = Exception.class)
    public void testQueryWithFROM()
    throws Exception {
      String query = "SELECT * FROM <http://sindice.com> { ?s ?p ?o }";
      pre.process(query);
    }
test_case.class_method_signature: TestSindicePreProcessing.testQueryWithFROM()
test_case.full_signature: @Test(expected = Exception.class) public void testQueryWithFROM()
test_case.identifier: testQueryWithFROM
test_case.invocations: process
test_case.modifiers: @Test(expected = Exception.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testQueryWithFROM()
focal_class.declarator: PREFIX = "GRAPH"
focal_class.modifier: private final static
focal_class.original_string: private final static String PREFIX = "GRAPH";
focal_class.type: String
focal_class.var_name: PREFIX
focal_class.declarator: SUFFIX = "END"
focal_class.modifier: private final static
focal_class.original_string: private final static String SUFFIX = "END";
focal_class.type: String
focal_class.var_name: SUFFIX
focal_class.declarator: isPartOf = new ASTIRI(SyntaxTreeBuilderTreeConstants.JJTIRI)
focal_class.modifier: public final static
focal_class.original_string: public final static ASTIRI isPartOf = new ASTIRI(SyntaxTreeBuilderTreeConstants.JJTIRI);
focal_class.type: ASTIRI
focal_class.var_name: isPartOf
focal_class.file: sparqled/src/main/java/org/sindice/sparqled/sparql/preprocessing/SindicePreProcessing.java
focal_class.identifier: SindicePreProcessing
focal_class.interfaces: implements PreProcessing
focal_class.class_method_signature: SindicePreProcessing.init(String... args)
focal_class.full_signature: @Override public void init(String... args)
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: (String... args)
focal_class.return: void
focal_class.signature: void init(String... args)
focal_class.class_method_signature: SindicePreProcessing.getVarPrefix()
focal_class.full_signature: @Override public String getVarPrefix()
focal_class.identifier: getVarPrefix
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVarPrefix()
focal_class.class_method_signature: SindicePreProcessing.getVarSuffix()
focal_class.full_signature: @Override public String getVarSuffix()
focal_class.identifier: getVarSuffix
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVarSuffix()
focal_class.class_method_signature: SindicePreProcessing.process(String query)
focal_class.full_signature: @Override public String process(String query)
focal_class.identifier: process
focal_class.modifiers: @Override public
focal_class.parameters: (String query)
focal_class.return: String
focal_class.signature: String process(String query)
focal_method.body: @Override
    public String process(String query)
    throws Exception {
      final ASTQueryContainer ast = SyntaxTreeBuilder.parseQuery(query);
  
      // Dataset clauses are not allowed
      if (ast.getQuery().getDatasetClauseList().size() != 0) {
        throw new IllegalArgumentException("FROM and FROM NAMED clauses are not allowed. Use GRAPH instead.");
      }
      // Extract entities into their separate graph
      // Add the triple describing the dataset
      ASTVarGenerator.reset();
      final AddDatasetStatement addDSst = new AddDatasetStatement();
      addDSst.visit(ast, null);
      // Translate query back to string
      return AST2TextTranslator.translate(ast);
    }
focal_method.class_method_signature: SindicePreProcessing.process(String query)
focal_method.full_signature: @Override public String process(String query)
focal_method.identifier: process
focal_method.invocations: parseQuery size getDatasetClauseList getQuery reset visit translate
focal_method.modifiers: @Override public
focal_method.parameters: (String query)
focal_method.return: String
focal_method.signature: String process(String query)