Skip to content

Commit

Permalink
Detect DomainConfiguration by RDF type
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jun 24, 2024
1 parent 5249c1b commit 2f58a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ogc/na/domain_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from typing import Union, Optional, Sequence, cast, IO, TypeVar, Iterable

import wcmatch.glob
from rdflib import Graph, Namespace, URIRef, DCTERMS, DCAT, Literal
from rdflib import Graph, Namespace, URIRef, DCTERMS, DCAT, Literal, RDF
from wcmatch.glob import globmatch

from ogc.na.profile import ProfileRegistry
Expand Down Expand Up @@ -214,7 +214,7 @@ def _load(self, source: Union[Graph, str, IO]):

identifier = cfg_graph.value(cfg_ref, DCTERMS.identifier) or str(cfg_ref)

if profile_refs:
if (cfg_ref, RDF.type, DCFG.DomainConfiguration) in cfg_graph:
self.entries.append(DomainConfigurationEntry(
working_directory=self.working_directory,
glob=globs,
Expand Down

0 comments on commit 2f58a48

Please sign in to comment.