micheldumontier/php-lib

Load namespaces out of an RDF file

Closed this issue · 0 comments

There is a list of namespaces in bio2rdf-webapp that could be used to maintain the information that is currently hardcoded in ns.php.

See the files in the following directory for examples:

https://github.com/bio2rdf/bio2rdf-webapp/tree/develop/src/main/resources/config/namespaces

The schema for these namespace entries is currently generated from java files in queryall, including:

https://github.com/queryall/queryall/blob/develop/queryall-api/src/main/java/org/queryall/api/namespace/NamespaceEntrySchema.java

https://github.com/queryall/queryall/blob/develop/queryall-api/src/main/java/org/queryall/api/namespace/ValidatingNamespaceEntrySchema.java

https://github.com/queryall/queryall/blob/develop/queryall-api/src/main/java/org/queryall/api/namespace/RegexValidatingNamespaceEntrySchema.java

The namespace entry schema may need additions to match the information in ns.php, but in the end it will be easier to maintain these lists in RDF rather than inside of PHP.