Show always the compilation message of vocabulary namespaces
This commit is contained in:
parent
d098fee62a
commit
102db58c3b
2 changed files with 3 additions and 4 deletions
|
@ -23,6 +23,8 @@ This project adheres to [Semantic Versioning](http://semver.org/) and
|
|||
- `RDF.IRI.InvalidError` instead of `RDF.InvalidURIError`
|
||||
- `RDF.Literal.InvalidError` instead of `RDF.InvalidLiteralError`
|
||||
- `RDF.Namespace.InvalidVocabBaseIRIError` instead of `RDF.Namespace.InvalidVocabBaseURIError`
|
||||
- show compilation message of vocabulary namespaces always to be able to relate
|
||||
resp. errors and warnings
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ defmodule RDF.Vocabulary.Namespace do
|
|||
alias RDF.Utils.ResourceClassifier
|
||||
|
||||
@vocabs_dir "priv/vocabs"
|
||||
@big_vocab_threshold 300
|
||||
|
||||
defmacro __using__(_opts) do
|
||||
quote do
|
||||
|
@ -35,9 +34,7 @@ defmodule RDF.Vocabulary.Namespace do
|
|||
{:data, data} -> {rdf_data_vocab_terms(data, base_iri), data}
|
||||
end
|
||||
|
||||
if data && RDF.Data.subject_count(data) > @big_vocab_threshold do
|
||||
IO.puts("Compiling vocabulary namespace for #{base_iri} may take some time")
|
||||
end
|
||||
IO.puts("Compiling vocabulary namespace for #{base_iri}")
|
||||
|
||||
ignored_terms = ignored_terms!(opts)
|
||||
terms =
|
||||
|
|
Loading…
Reference in a new issue