Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better doc / references to original papers #4

Open
Remi-C opened this issue Aug 2, 2016 · 2 comments
Open

better doc / references to original papers #4

Remi-C opened this issue Aug 2, 2016 · 2 comments

Comments

@Remi-C
Copy link

Remi-C commented Aug 2, 2016

Hey @koenedaele,
I'm very glad to have found this work, it suits perfectly what I'm trying to do.
I have a few questions/ remarks:

  • what is the license (is research usage OK ? )

  • what paper are the "Kvd relations" referring to ? I found your master thesis, it seems to be

    [6] Steven Schockaert, Martine De Cock, and Etienne E. Kerre, “An efficient
    characterization of fuzzy temporal interval relations,” in Proceedings of
    the 2006 IEEE World Congress on Computational Intelligence, 2006, pp.
    9026–9033.

  • It could be cool to extend the README with info about this module usage (some real case usage, more detailled than in /docs)

  • There are plenty of option for string/date/int -> sfti, but I can't find any option for sfti->array/record. Sure I can do this manually , but it is ugly and ineffective :

    SELECT sfti_ar
    FROM sfti_makesfti(1783, 1785, 1791, 1799) as f
    , trim(both '()' from f::text) as ar
    , regexp_split_to_array(ar, ',') as sfti_ar
    --{1783.000000,1785.000000,1791.000000,1799.000000,1.000000}

If you are OK I can extend the doc in the readme and make a pull request.
I'll need more functions anyway, such as cast to geometry for easy visualisation, interesection function and so

Cheers,
Rémi-C

@koenedaele
Copy link
Member

Hi Rémi,

glad that you find it interesting. I'll get back to you on the specific license, but it's certainly open source. So, no problem to use in research whatsoever.

The KVD relations are a few extra relations I thought were useful. I talk about them on page 32 of my thesis, but unfortunately that's all in Dutch. The kvd_before (or bef) is basically allen_before or allen_meets. The idea came from the observation that under the allen_relations '1900-1914' before '1914-1918' would be false. Which seems rather strange from an archaelogist or historian's point of view. The kvd_during (or dur) actually appears in the Allen paper about relations. The kvd_intersect is just a simple do these two intervals have a point in common, similar to the postgis functions. From my end users point of view this is more often than not the only relation they care about, which was noted by Nagypal and Motik (G. Nagypal & B. Motik 2003. A fuzzy model for representing uncertain, subjective and vague temporal knowledge in ontologies).

I'm not sure what kind of docs you've already found. Possible docs:

There are two repositories with code. This one and https://github.com/koenedaele/pgFTI. They use the same underlying algorithms, but this one only implements the efficient version by Schockaert et al in a C module. The other one implements different algorithms, but all of it in PL/PGSQL and by using Postgis (which did have the benefit of being able to load a list of periods in QGIS). If you're concerned about performance and are ok with using simple fuzzy intervals, this one is best (and what we will be using). If you want to be able to use more complicated Fuzzy Time Intervals and don't need as much performance, the other repository can help you.

PR's are certainly welcome.

@koenedaele
Copy link
Member

We've decided on the MIT license for this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants