public function getNodeInSparqlFormat(Node $node, $var = null)
    {
        if ($node->isConcrete()) {
            return $node->toNQuads();
        }

        if (null !== $var) {
            return '?'.$var;
        } else {
            return '?'.uniqid('tempVar');
        }
    }