test_class.file: jena-sparql-api-stmt/src/test/java/org/aksw/jena_sparql_api/stmt/TestSparqlStmtUtils.java
test_class.identifier: TestSparqlStmtUtils
test_case.body: @Test
  	public void testUsedPrefixes2() {
  		PrefixMapping pm = RDFDataMgr.loadModel("rdf-prefixes/wikidata.jsonld");
  		String queryStr = "INSERT {" + 
  				"  ?s wdt:P279 wd:Q7725634 .\n" +
  				"}\n" +
  				"  WHERE {\n" + 
  				"      ?s rdfs:label ?desc \n" + 
  				"      FILTER (LANG(?desc) = \"en\").\n" + 
  				"  }\n";
  		
  		SparqlStmt stmt = SparqlStmtParserImpl.create(pm).apply(queryStr);
  		SparqlStmtUtils.optimizePrefixes(stmt);
  		UpdateRequest updateRequest = stmt.getUpdateRequest();
  		// System.out.println(updateRequest);
  		Set<String> actual = updateRequest.getPrefixMapping().getNsPrefixMap().keySet();
  		Assert.assertEquals(Sets.newHashSet("rdfs", "wd", "wdt"), actual);		
  	}
test_case.class_method_signature: TestSparqlStmtUtils.testUsedPrefixes2()
test_case.full_signature: @Test public void testUsedPrefixes2()
test_case.identifier: testUsedPrefixes2
test_case.invocations: loadModel apply create optimizePrefixes getUpdateRequest keySet getNsPrefixMap getPrefixMapping assertEquals newHashSet
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUsedPrefixes2()
focal_class.declarator: symConnection = Symbol.create("http://jsa.aksw.org/connection")
focal_class.modifier: public static final
focal_class.original_string: public static final Symbol symConnection = Symbol.create("http://jsa.aksw.org/connection");
focal_class.type: Symbol
focal_class.var_name: symConnection
focal_class.file: jena-sparql-api-stmt/src/main/java/org/aksw/jena_sparql_api/stmt/SparqlStmtUtils.java
focal_class.identifier: SparqlStmtUtils
focal_class.class_method_signature: SparqlStmtUtils.mentionedEnvVars(SparqlStmt stmt)
focal_class.full_signature: public static Map<String, Boolean> mentionedEnvVars(SparqlStmt stmt)
focal_class.identifier: mentionedEnvVars
focal_class.modifiers: public static
focal_class.parameters: (SparqlStmt stmt)
focal_class.return: Map<String, Boolean>
focal_class.signature: Map<String, Boolean> mentionedEnvVars(SparqlStmt stmt)
focal_class.class_method_signature: SparqlStmtUtils.getUnionProjectVars(Collection<? extends SparqlStmt> stmts)
focal_class.full_signature: public static List<Var> getUnionProjectVars(Collection<? extends SparqlStmt> stmts)
focal_class.identifier: getUnionProjectVars
focal_class.modifiers: public static
focal_class.parameters: (Collection<? extends SparqlStmt> stmts)
focal_class.return: List<Var>
focal_class.signature: List<Var> getUnionProjectVars(Collection<? extends SparqlStmt> stmts)
focal_class.class_method_signature: SparqlStmtUtils.optimizePrefixes(SparqlStmt stmt)
focal_class.full_signature: public static SparqlStmt optimizePrefixes(SparqlStmt stmt)
focal_class.identifier: optimizePrefixes
focal_class.modifiers: public static
focal_class.parameters: (SparqlStmt stmt)
focal_class.return: SparqlStmt
focal_class.signature: SparqlStmt optimizePrefixes(SparqlStmt stmt)
focal_class.class_method_signature: SparqlStmtUtils.optimizePrefixes(SparqlStmt stmt, PrefixMapping globalPm)
focal_class.full_signature: public static SparqlStmt optimizePrefixes(SparqlStmt stmt, PrefixMapping globalPm)
focal_class.identifier: optimizePrefixes
focal_class.modifiers: public static
focal_class.parameters: (SparqlStmt stmt, PrefixMapping globalPm)
focal_class.return: SparqlStmt
focal_class.signature: SparqlStmt optimizePrefixes(SparqlStmt stmt, PrefixMapping globalPm)
focal_class.class_method_signature: SparqlStmtUtils.applyOpTransform(SparqlStmt stmt, Function<? super Op, ? extends Op> transform)
focal_class.full_signature: public static SparqlStmt applyOpTransform(SparqlStmt stmt, Function<? super Op, ? extends Op> transform)
focal_class.identifier: applyOpTransform
focal_class.modifiers: public static
focal_class.parameters: (SparqlStmt stmt, Function<? super Op, ? extends Op> transform)
focal_class.return: SparqlStmt
focal_class.signature: SparqlStmt applyOpTransform(SparqlStmt stmt, Function<? super Op, ? extends Op> transform)
focal_class.class_method_signature: SparqlStmtUtils.applyNodeTransform(SparqlStmt stmt, NodeTransform xform)
focal_class.full_signature: public static SparqlStmt applyNodeTransform(SparqlStmt stmt, NodeTransform xform)
focal_class.identifier: applyNodeTransform
focal_class.modifiers: public static
focal_class.parameters: (SparqlStmt stmt, NodeTransform xform)
focal_class.return: SparqlStmt
focal_class.signature: SparqlStmt applyNodeTransform(SparqlStmt stmt, NodeTransform xform)
focal_class.class_method_signature: SparqlStmtUtils.processFile(PrefixMapping pm, String filenameOrURI)
focal_class.full_signature: public static SparqlStmtIterator processFile(PrefixMapping pm, String filenameOrURI)
focal_class.identifier: processFile
focal_class.modifiers: public static
focal_class.parameters: (PrefixMapping pm, String filenameOrURI)
focal_class.return: SparqlStmtIterator
focal_class.signature: SparqlStmtIterator processFile(PrefixMapping pm, String filenameOrURI)
focal_class.class_method_signature: SparqlStmtUtils.extractBaseIri(String filenameOrURI)
focal_class.full_signature: public static URI extractBaseIri(String filenameOrURI)
focal_class.identifier: extractBaseIri
focal_class.modifiers: public static
focal_class.parameters: (String filenameOrURI)
focal_class.return: URI
focal_class.signature: URI extractBaseIri(String filenameOrURI)
focal_class.class_method_signature: SparqlStmtUtils.loadString(String filenameOrURI)
focal_class.full_signature: public static String loadString(String filenameOrURI)
focal_class.identifier: loadString
focal_class.modifiers: public static
focal_class.parameters: (String filenameOrURI)
focal_class.return: String
focal_class.signature: String loadString(String filenameOrURI)
focal_class.class_method_signature: SparqlStmtUtils.openInputStream(String filenameOrURI)
focal_class.full_signature: public static TypedInputStream openInputStream(String filenameOrURI)
focal_class.identifier: openInputStream
focal_class.modifiers: public static
focal_class.parameters: (String filenameOrURI)
focal_class.return: TypedInputStream
focal_class.signature: TypedInputStream openInputStream(String filenameOrURI)
focal_class.class_method_signature: SparqlStmtUtils.processFile(PrefixMapping pm, String filenameOrURI, String baseIri)
focal_class.full_signature: public static SparqlStmtIterator processFile(PrefixMapping pm, String filenameOrURI, String baseIri)
focal_class.identifier: processFile
focal_class.modifiers: public static
focal_class.parameters: (PrefixMapping pm, String filenameOrURI, String baseIri)
focal_class.return: SparqlStmtIterator
focal_class.signature: SparqlStmtIterator processFile(PrefixMapping pm, String filenameOrURI, String baseIri)
focal_class.class_method_signature: SparqlStmtUtils.processInputStream(PrefixMapping pm, String baseIri, InputStream in)
focal_class.full_signature: public static SparqlStmtIterator processInputStream(PrefixMapping pm, String baseIri, InputStream in)
focal_class.identifier: processInputStream
focal_class.modifiers: public static
focal_class.parameters: (PrefixMapping pm, String baseIri, InputStream in)
focal_class.return: SparqlStmtIterator
focal_class.signature: SparqlStmtIterator processInputStream(PrefixMapping pm, String baseIri, InputStream in)
focal_class.class_method_signature: SparqlStmtUtils.parse(InputStream in, Function<String, SparqlStmt> parser)
focal_class.full_signature: public static SparqlStmtIterator parse(InputStream in, Function<String, SparqlStmt> parser)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (InputStream in, Function<String, SparqlStmt> parser)
focal_class.return: SparqlStmtIterator
focal_class.signature: SparqlStmtIterator parse(InputStream in, Function<String, SparqlStmt> parser)
focal_class.class_method_signature: SparqlStmtUtils.execAny(RDFConnection conn, SparqlStmt stmt)
focal_class.full_signature: public static SPARQLResultEx execAny(RDFConnection conn, SparqlStmt stmt)
focal_class.identifier: execAny
focal_class.modifiers: public static
focal_class.parameters: (RDFConnection conn, SparqlStmt stmt)
focal_class.return: SPARQLResultEx
focal_class.signature: SPARQLResultEx execAny(RDFConnection conn, SparqlStmt stmt)
focal_class.class_method_signature: SparqlStmtUtils.createSinkQuads(RDFFormat format, OutputStream out, PrefixMapping pm, Supplier<Dataset> datasetSupp)
focal_class.full_signature: public static Sink<Quad> createSinkQuads(RDFFormat format, OutputStream out, PrefixMapping pm, Supplier<Dataset> datasetSupp)
focal_class.identifier: createSinkQuads
focal_class.modifiers: public static
focal_class.parameters: (RDFFormat format, OutputStream out, PrefixMapping pm, Supplier<Dataset> datasetSupp)
focal_class.return: Sink<Quad>
focal_class.signature: Sink<Quad> createSinkQuads(RDFFormat format, OutputStream out, PrefixMapping pm, Supplier<Dataset> datasetSupp)
focal_class.class_method_signature: SparqlStmtUtils.output(
              SPARQLResultEx rr,
              SPARQLResultVisitor sink)
focal_class.full_signature: public static void output(
              SPARQLResultEx rr,
              SPARQLResultVisitor sink)
focal_class.identifier: output
focal_class.modifiers: public static
focal_class.parameters: (
              SPARQLResultEx rr,
              SPARQLResultVisitor sink)
focal_class.return: void
focal_class.signature: void output(
              SPARQLResultEx rr,
              SPARQLResultVisitor sink)
focal_class.class_method_signature: SparqlStmtUtils.output(
          SPARQLResultEx rr,
          Consumer<Quad> sink
      )
focal_class.full_signature: public static void output(
          SPARQLResultEx rr,
          Consumer<Quad> sink
      )
focal_class.identifier: output
focal_class.modifiers: public static
focal_class.parameters: (
          SPARQLResultEx rr,
          Consumer<Quad> sink
      )
focal_class.return: void
focal_class.signature: void output(
          SPARQLResultEx rr,
          Consumer<Quad> sink
      )
focal_class.class_method_signature: SparqlStmtUtils.output(SPARQLResultEx r)
focal_class.full_signature: public static void output(SPARQLResultEx r)
focal_class.identifier: output
focal_class.modifiers: public static
focal_class.parameters: (SPARQLResultEx r)
focal_class.return: void
focal_class.signature: void output(SPARQLResultEx r)
focal_class.class_method_signature: SparqlStmtUtils.process(RDFConnection conn, SparqlStmt stmt, SPARQLResultVisitor sink)
focal_class.full_signature: public static void process(RDFConnection conn, SparqlStmt stmt, SPARQLResultVisitor sink)
focal_class.identifier: process
focal_class.modifiers: public static
focal_class.parameters: (RDFConnection conn, SparqlStmt stmt, SPARQLResultVisitor sink)
focal_class.return: void
focal_class.signature: void process(RDFConnection conn, SparqlStmt stmt, SPARQLResultVisitor sink)
focal_class.class_method_signature: SparqlStmtUtils.processOld(RDFConnection conn, SparqlStmt stmt)
focal_class.full_signature: public static void processOld(RDFConnection conn, SparqlStmt stmt)
focal_class.identifier: processOld
focal_class.modifiers: public static
focal_class.parameters: (RDFConnection conn, SparqlStmt stmt)
focal_class.return: void
focal_class.signature: void processOld(RDFConnection conn, SparqlStmt stmt)
focal_class.class_method_signature: SparqlStmtUtils.toAlgebra(SparqlStmt stmt)
focal_class.full_signature: public static Op toAlgebra(SparqlStmt stmt)
focal_class.identifier: toAlgebra
focal_class.modifiers: public static
focal_class.parameters: (SparqlStmt stmt)
focal_class.return: Op
focal_class.signature: Op toAlgebra(SparqlStmt stmt)
focal_method.body: public static SparqlStmt optimizePrefixes(SparqlStmt stmt) {
          optimizePrefixes(stmt, null);
          return stmt;
      }
focal_method.class_method_signature: SparqlStmtUtils.optimizePrefixes(SparqlStmt stmt)
focal_method.full_signature: public static SparqlStmt optimizePrefixes(SparqlStmt stmt)
focal_method.identifier: optimizePrefixes
focal_method.invocations: optimizePrefixes
focal_method.modifiers: public static
focal_method.parameters: (SparqlStmt stmt)
focal_method.return: SparqlStmt
focal_method.signature: SparqlStmt optimizePrefixes(SparqlStmt stmt)