Rupert Westenthaler created STANBOL-1259:
--------------------------------------------

             Summary: Add FallbackMode, URI Pattern and URI Prefix support to 
the DereferenceEngine
                 Key: STANBOL-1259
                 URL: https://issues.apache.org/jira/browse/STANBOL-1259
             Project: Stanbol
          Issue Type: New Feature
          Components: Enhancement Engines
    Affects Versions: 0.12.0
            Reporter: Rupert Westenthaler
            Assignee: Rupert Westenthaler


The generic implementation of the DereferenceEngine should be extended by the 
following options:

1. FallbackMode: If enabled it will not dereference Entities for those already 
some triples are present in the Enhancement Structure
2. URI Prefixes: Allows to configure prefixes of URIs that should be 
dereferenced
3. URI Patterns: Allows to configure regex pattern for URIs that should be 
dereferenced.

An Entity will only be scheduled for dereferenceing if

* !fallbackMode OR no triples are available
* prefixes.isEmpty() && patterns.isEmpty()
* the entity URI matches any of the prefixes or patterns

This allows to have multiple Engine instances with different field and ldpath 
configurations for different data sets (e.g. Geonames, DBPedia, SKOS, ...). 

It also allows to avoid necessary calls Dereferencer that might need much more 
time to check if they can dereference an Entity.

By default fallback mode should be enabled, prefixes and patterns will be empty.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to