diff --git a/src/simpleRdf/DataFactory.php b/src/simpleRdf/DataFactory.php index 58dcc8c..00444f2 100644 --- a/src/simpleRdf/DataFactory.php +++ b/src/simpleRdf/DataFactory.php @@ -35,6 +35,7 @@ use rdfInterface\DefaultGraphInterface as iDefaultGraph; use rdfInterface\QuadInterface as iQuad; use rdfHelpers\DefaultGraph; +use rdfHelpers\QuadNoSubject; /** * Description of DataFactory @@ -69,4 +70,11 @@ public static function quad( ): iQuad { return new Quad(clone $subject, clone $predicate, clone $object, $graphIri); } + + public static function quadNoSubject( + iNamedNode $predicate, iTerm $object, + iNamedNode | iBlankNode | iDefaultGraph | null $graphIri = null + ): QuadNoSubject { + return new QuadNoSubject(clone $predicate, clone $object, $graphIri); + } }