// NewOntology
// takes a parser configuration which optionally allows parsing into custom types.
// i.e. own types for ClassDecl,ObjectPropertyDecl...
// For parsing into custom types, the three interfaces used in StoreConfig must be implemented.
// By default, the reference implementation of the storedefaults package is used.
NewOntology
takes a parser configuration which optionally allows parsing into custom types.
i.e. own types for ClassDecl,ObjectPropertyDecl
For parsing into custom types, the three interfaces used in StoreConfig must be implemented.
By default, the reference implementation of the storedefaults package is used.
// NewOntology // takes a parser configuration which optionally allows parsing into custom types . // i . e . own types for ClassDecl ObjectPropertyDecl ... // For parsing into custom types the three interfaces used in StoreConfig must be implemented . // By default the reference implementation of the storedefaults package is used .
func NewOntology(
	prefixes map[string]string,
	cfg StoreConfig,
) (res *Ontology) {
	res = &Ontology{
		Prefixes:       prefixes,
		AxiomStore:     cfg.AxiomStore,
		Decls:          cfg.Decls,
		DeclStore:      cfg.DeclStore,
		allAnnotations: make([]annotations.Annotation, 0),
	}
	return
}
func NewOntology ( prefixes map [ string ] string , cfg StoreConfig , ) ( res * Ontology ) { res = & Ontology { Prefixes : prefixes , AxiomStore : cfg . AxiomStore , Decls : cfg . Decls , DeclStore : cfg . DeclStore , allAnnotations : make ( [ ] annotations . Annotation , 0 ) , } return }
NewOntology
takes a parser configuration which optionally allows parsing into custom types.
NewOntology takes a parser configuration which optionally allows parsing into custom types .