buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

use ont-policy.rdf #127

Closed xristy closed 5 years ago

xristy commented 5 years ago

The owl-schema/ont-policy.rdf needs to replace ontologies.yml so that updates to the ontology structure is updated on ldspdi w/o any further work. The github webhook should trigger accessing the ontology via

OntDocumentManager mgrImporting = 
   new OntDocumentManager("https://raw.githubusercontent.com/buda-base/owl-schema/master/ont-policy.rdf");

If there is need of some additional information to the defined ont-policy properties, then it is a simple matter to include them. The Jena processing of ont-policy.rdf is lenient w.r.t. the presence of externally defined properties.

MarcAgate commented 5 years ago

So far, I have identified that we need a way to mark a given ontology (in our case, admin, bdo and auth) as "viewable" or not, so that would be a boolean. (That's for the dropdown list used on the jsp pages).

Actually, I am also missing "graph" and "name" properties for each ontology as in ontologies.yml.

it looks like there's no way to get these props values out of OntDocumentManager or FileManager so I beleive that the solution is as cumbersome as building a Model out of ont-policies.rdf then query it or searching for relevant statements. Did you envisioned another way to get props values?

xristy commented 5 years ago

d368cd0 added adm:defaultOntGraph, adm:ontGraph, and adm:ontVisible as well as ontology/ext/auth to ont-policy.rdf.