You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
936 B
40 lines
936 B
<?php
|
|
|
|
use App\Configuration;
|
|
use App\DeegraphSchemas\TuneSchema;
|
|
use App\Wrappers\DeegraphInteractions;
|
|
use App\Wrappers\TwigWrapper;
|
|
use Darksparrow\AuxiliumSchemaBuilder\Utilities\URLHandling;
|
|
use Darksparrow\DeegraphInteractions\DataStructures\UUID;
|
|
use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilder;
|
|
|
|
require_once __DIR__ . "/../vendor/autoload.php";
|
|
|
|
$db = DeegraphInteractions::GetConnection();
|
|
|
|
|
|
$temp = DeegraphInteractions::NewNode(
|
|
dataURL: 'https://google.com',
|
|
schema: URLHandling::GetURLForSchema(TuneSchema::class),
|
|
);
|
|
|
|
|
|
|
|
$temp = QueryBuilder::Select()
|
|
->relativePaths([
|
|
'.'
|
|
])
|
|
// ->From('**')
|
|
->instanceOf(schema: URLHandling::GetURLForSchema(TuneSchema::class))
|
|
->build()
|
|
->runQuery(
|
|
actorID: new UUID(Configuration::GetConfig("Deegraph", "LoginNode")),
|
|
server: $db,
|
|
)
|
|
;
|
|
|
|
foreach($temp->Rows as $row)
|
|
{
|
|
var_dump($row);
|
|
echo "<br><br>";
|
|
}
|
|
|