OnroerendErfgoed / pgSFTI

simple FuzzyTimeInterval for Postgresql
MIT License
4 stars 2 forks source link

better doc / references to original papers #4

Open Remi-C opened 8 years ago

Remi-C commented 8 years ago

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:

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 commented 8 years ago

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 commented 8 years ago

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