Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace LambdaTwelve\OneRecord\Rdf;
6
7/**
8 * A node in an RDF graph: an IRI, a blank node or a literal.
9 *
10 * ONE Record is RDF underneath its JSON-LD, and two documents are "the same"
11 * when their graphs are isomorphic, not when their JSON is equal. Everything
12 * that compares, diffs or patches logistics objects works on these terms.
13 */
14interface Term
15{
16    /**
17     * A stable textual form used for sorting and hashing: N-Triples syntax.
18     */
19    public function toNTriples(): string;
20
21    public function equals(Term $other): bool;
22}