src/GraphBuilder.php
public function getSPARQL() {
		// add subqueries to the beginning because they are logically evaluated first
		$sparql = $this->formatSubqueries();

		foreach ( $this->conditions as $subject => $predicates ) {
			$sparql .= ' ' . $subject;
			$sparql .= $this->formatPredicates( $predicates ) . ' .';
		}

		$sparql .= $this->formatOptionals();
		$sparql .= $this->formatFilters();
		$sparql .= $this->formatUnions();

		return $sparql;
	}
public function getSPARQL() {
		// add subqueries to the beginning because they are logically evaluated first
		$sparql = $this->formatSubqueries();

		foreach ( $this->conditions as $subject => $predicates ) {
			$sparql .= ' ' . $subject;
			$sparql .= $this->formatPredicates( $predicates ) . ' .';
		}

		$sparql .= $this->formatOptionals();
		$sparql .= $this->formatFilters();
		$sparql .= $this->formatUnions();

		return $sparql;
	}
public function getSPARQL ( ) { // add subqueries to the beginning because they are logically evaluated first $ sparql = $ this -> formatSubqueries ( ) ; foreach ( $ this -> conditions as $ subject => $ predicates ) { $ sparql .= ' ' . $ subject ; $ sparql .= $ this -> formatPredicates ( $ predicates ) . ' .' ; } $ sparql .= $ this -> formatOptionals ( ) ; $ sparql .= $ this -> formatFilters ( ) ; $ sparql .= $ this -> formatUnions ( ) ; return $ sparql ; }
Returns the plain SPARQL string of these conditions.
Surrounding brackets are not included.

@return string
Returns the plain SPARQL string of these conditions . Surrounding brackets are not included .