dice-group / LIMES

Link Discovery Framework for Metric Spaces.
https://limes.demos.dice-research.org/
GNU Affero General Public License v3.0
126 stars 54 forks source link

Change in LGD example configuration #297

Closed aalexandrasilva closed 1 year ago

aalexandrasilva commented 2 years ago

As requested, changed the LGD example configuration to:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE LIMES SYSTEM "limes.dtd">
<LIMES>
<PREFIX>
  <NAMESPACE>http://www.opengis.net/ont/geosparql#</NAMESPACE>
  <LABEL>geos</LABEL>
</PREFIX>
<PREFIX>
  <NAMESPACE>http://linkedgeodata.org/ontology/</NAMESPACE>
  <LABEL>lgdo</LABEL>
</PREFIX>
<PREFIX>
  <NAMESPACE>http://geovocab.org/geometry#</NAMESPACE>
  <LABEL>ngeo</LABEL>
</PREFIX>
<SOURCE>
  <ID>sourceId</ID>
  <ENDPOINT>http://linkedgeodata.org/sparql</ENDPOINT>
  <VAR>?s</VAR>
  <PAGESIZE>2000</PAGESIZE>
  <RESTRICTION>?s a lgdo:RelayBox</RESTRICTION>
  <PROPERTY>ngeo:geometry/geos:asWKT RENAME GEOMETRY</PROPERTY>
  <PROPERTY>ngeo:geometry AS uriasstring RENAME strGeo</PROPERTY>
</SOURCE>
<TARGET>
  <ID>targetId</ID>
  <ENDPOINT>http://linkedgeodata.org/sparql</ENDPOINT>
  <VAR>?t</VAR>
  <PAGESIZE>2000</PAGESIZE>
  <RESTRICTION>?t a lgdo:RelayBox</RESTRICTION>
  <PROPERTY>ngeo:geometry/geos:asWKT RENAME GEOMETRY</PROPERTY>
  <PROPERTY>ngeo:geometry AS uriasstring RENAME StrGeo</PROPERTY>
</TARGET>
<METRIC>
  MINUS(geo_hausdorff(s.GEOMETRY,t.GEOMETRY)|0.5,exactmatch(s.strGeo,t.StrGeo)|0.5)
</METRIC>
<ACCEPTANCE>
  <THRESHOLD>0.9</THRESHOLD>
  <FILE>lgd_relaybox_verynear.nt</FILE>
  <RELATION>lgdo:near</RELATION>
</ACCEPTANCE>
<REVIEW>
  <THRESHOLD>0.5</THRESHOLD>
  <FILE>lgd_relaybox_near.nt</FILE>
  <RELATION>lgdo:near</RELATION>
</REVIEW>
<EXECUTION>
  <REWRITER>DEFAULT</REWRITER>
  <PLANNER>DEFAULT</PLANNER>
  <ENGINE>DEFAULT</ENGINE>
</EXECUTION>
<OUTPUT>TAB</OUTPUT>
</LIMES>
abdullahfathi commented 2 years ago

Why you renamed the property ngeo:geometry and considered its value as a string?

aalexandrasilva commented 2 years ago

Why you renamed the property ngeo:geometry and considered its value as a string?

This configuration file was shared with me by Sherif, the metrics were changed to also include a string similarity in exactmatch(s.strGeo,t.StrGeo).

abdullahfathi commented 2 years ago

Are you able to get result with this configuration?

aalexandrasilva commented 2 years ago

Yes, if I feed this configuration to limes I get: 15:47:43.242 [main] [] INFO org.aksw.limes.core.controller.Controller:226 - Mapping size: 134 (accepted) + 4070 (need verification) = 4204 (total)

abdullahfathi commented 2 years ago

I see if you replace MINUS(geo_hausdorff(s.GEOMETRY,t.GEOMETRY)|0.5,exactmatch(s.strGeo,t.StrGeo)|0.5) with geo_hausdorff(s.GEOMETRY,t.GEOMETRY)|0.5 are you still able to generate results?

aalexandrasilva commented 2 years ago

Yes. 15:54:56.889 [main] [] INFO org.aksw.limes.core.controller.Controller:226 - Mapping size: 424 (accepted) + 4070 (need verification) = 4494 (total)

MSherif commented 2 years ago

Why you renamed the property ngeo:geometry and considered its value as a string?

The old geometry url is not working any more. i.e., the LGD changed the used ontology, that is why it was working but with no results.

the second parameters of the MINUS operator is just to make sure not to get instances ner by itself