src/QueryPrefixBuilder.php
private function setPrefixes( array $prefixes ) {
		foreach ( $prefixes as $prefix => $iri ) {
			$this->expressionValidator->validate( $prefix, ExpressionValidator::VALIDATE_PREFIX );
			$this->expressionValidator->validate( $iri, ExpressionValidator::VALIDATE_IRI );

			$this->prefixes[$prefix] = $iri;
		}

		$this->usageValidator->trackDefinedPrefixes( array_keys( $this->prefixes ) );
	}
private function setPrefixes( array $prefixes ) {
		foreach ( $prefixes as $prefix => $iri ) {
			$this->expressionValidator->validate( $prefix, ExpressionValidator::VALIDATE_PREFIX );
			$this->expressionValidator->validate( $iri, ExpressionValidator::VALIDATE_IRI );

			$this->prefixes[$prefix] = $iri;
		}

		$this->usageValidator->trackDefinedPrefixes( array_keys( $this->prefixes ) );
	}
private function setPrefixes ( array $ prefixes ) { foreach ( $ prefixes as $ prefix => $ iri ) { $ this -> expressionValidator -> validate ( $ prefix , ExpressionValidator :: VALIDATE_PREFIX ) ; $ this -> expressionValidator -> validate ( $ iri , ExpressionValidator :: VALIDATE_IRI ) ; $ this -> prefixes [ $ prefix ] = $ iri ; } $ this -> usageValidator -> trackDefinedPrefixes ( array_keys ( $ this -> prefixes ) ) ; }
Sets the prefixes for the given IRIs.

@param string[] $prefixes
@throws InvalidArgumentException
Sets the prefixes for the given IRIs .