Vocabulary

struct CowlVocab

Vocabulary of reserved terms.

Public Members

CowlOWLVocab const *owl

OWL vocabulary.

CowlRDFVocab const *rdf

RDF vocabulary.

CowlRDFSVocab const *rdfs

RDFS vocabulary.

CowlXSDVocab const *xsd

XSD vocabulary.

CowlVocab const *cowl_vocab(void)

Returns the vocabulary of reserved terms.

Returns:

Vocabulary of reserved terms.

bool cowl_vocab_is_reserved_prefix(CowlString *prefix)

Checks whether the specified prefix is in the reserved vocabulary.

Parameters:
  • prefix – The prefix.

Returns:

True if the prefix is reserved, false otherwise.

bool cowl_vocab_is_reserved_ns(CowlString *ns)

Checks whether the specified namespace is in the reserved vocabulary.

Parameters:
  • ns – The namespace.

Returns:

True if the namespace is reserved, false otherwise.

bool cowl_vocab_is_reserved_prefix_raw(UString prefix)

Checks whether the specified prefix is in the reserved vocabulary.

Parameters:
  • prefix – The prefix.

Returns:

True if the prefix is reserved, false otherwise.

bool cowl_vocab_is_reserved_ns_raw(UString ns)

Checks whether the specified namespace is in the reserved vocabulary.

Parameters:
  • ns – The namespace.

Returns:

True if the namespace is reserved, false otherwise.