$debug
$debug : boolean
Debug flag - setting it to true causes loggin messages to be displayed.
Implements metadata lookup by searching in a given metadata locations for a file with an original file name with a given extension appended.
__construct(array $locations = array(), string $extension = '.ttl', string $format = null)
Creates a new MetaLookupFile instance.
array | $locations | location to search for metadata files in (both absolute and relative paths allowed) |
string | $extension | suffix added to the original filename to form a metadata file name |
string | $format | metadata format understandable for \EasyRdf\Graph::parseFile() (if null format will be autodetected) |
getMetadata(string $path, \EasyRdf\Resource $meta, boolean $require = false) : \EasyRdf\Resource
Searches for metadata of a given file.
string | $path | path to the file |
\EasyRdf\Resource | $meta | file's metadata (just for conformance with the interface, they are not used) |
boolean | $require | should error be thrown when no metadata was found (when false a resource with no triples is returned) |
fetched metadata