-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Obtain namespace prefixes from vocabularies.ttl and use them in RDF e…
…xport. Fixes #387
- Loading branch information
Showing
4 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Copyright (c) 2016 University of Helsinki | ||
* MIT License | ||
* see LICENSE.txt for more information | ||
*/ | ||
|
||
class NamespaceExposingTurtleParser extends EasyRdf_Parser_Turtle | ||
{ | ||
/** | ||
* Returns the namespace prefixes as an array of prefix => URI | ||
* @return array $namespaces | ||
*/ | ||
public function getNamespaces() | ||
{ | ||
return $this->namespaces; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters