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

Geo sparql issues with Lucene #4978

Closed
ate47 opened this issue May 15, 2024 · 1 comment · Fixed by #4979
Closed

Geo sparql issues with Lucene #4978

ate47 opened this issue May 15, 2024 · 1 comment · Fixed by #4979
Assignees
Labels
🐞 bug issue is a bug
Milestone

Comments

@ate47
Copy link
Contributor

ate47 commented May 15, 2024

Current Behavior

Using our dataset, we noticed that some GeoSparql queries doesn't have the same behaviours with or without a Lucene Sail with a Lucene index.

Sometimes the results are empty with the Lucene index and not empty without it, sometimes not empty with the Lucene index and empty with it.

Expected Behavior

Same results whatever the configuration is.

Steps To Reproduce

Using this dataset: geo2.zip

private void printHead(TupleQueryResult res) {
	for (int i = 0; i < 5; i++) {
		if (!res.hasNext()) {
			return;
		}
		System.out.println(res.next());
	}
	if (!res.hasNext()) {
		return;
	}
	int more = 0;
	while (res.hasNext()) {
		more++;
		res.next();
	}
	System.out.println("... +" + more);
}

@Test
public void geoSparqlTest() throws IOException {
	// use or not Lucene
	boolean useLucene = true;

	NotifyingSail store = new MemoryStore();
	if (useLucene) {
		LuceneSail lc = new LuceneSail();
		lc.setBaseSail(store);
		lc.setDataDir(new File("lucene"));
		lc.setParameter(LuceneSail.WKT_FIELDS, "https://linkedopendata.eu/prop/direct/P127 http://nuts.de/geometry");
		lc.setParameter(LuceneSail.MAX_DOCUMENTS_KEY, "5000");
		lc.setEvaluationMode(TupleFunctionEvaluationMode.NATIVE);
		store = lc;
	}
	System.out.println("Lucene: " + useLucene);
	SailRepository repo = new SailRepository(store);

	try {
		Repositories.consume(repo, RepositoryConnection::clear);

		Repositories.consume(repo, conn -> {
			try {
				conn.add(new File("C:\\Users\\wilat\\workspace\\qep\\geo2.ttl"));
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
		});

		// repo.reindexLuceneSails();
		if (store instanceof LuceneSail lss) {
			lss.reindex();
			//if (!(lss.getLuceneIndex() instanceof LuceneIndex li)) {
			//	throw new AssertionError();
			//}
			//luceneDumpTest(li.getIndexReader());
		}

		try (SailRepositoryConnection conn = repo.getConnection()) {
			{
				TupleQuery tq = conn.prepareTupleQuery(
						"""
								PREFIX geo: <http://www.opengis.net/ont/geosparql#>
								PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
								PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
								PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
								SELECT * {
									?project <https://linkedopendata.eu/prop/direct/P127> ?coords.\s
									FILTER(<http://www.opengis.net/def/function/geosparql/ehContains>("POLYGON((6.822266 46.635784, 8.822265999999999 46.635784, 8.822265999999999 48.635784, 6.822266 48.635784, 6.822266 46.635784))"^^<http://www.opengis.net/ont/geosparql#wktLiteral>, ?coords ))
								}
										""");

				System.out.println("Q1:");
				try (TupleQueryResult res = tq.evaluate()) {
					printHead(res);
				}
				System.out.println("---------------");
			}
			{
				TupleQuery tq = conn.prepareTupleQuery(
						"""
								PREFIX geo: <http://www.opengis.net/ont/geosparql#>
								PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
								PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
								PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
								SELECT ?id ?o WHERE {
												?s rdf:type <http://nuts.de/NUTS3> .
												?s <http://nuts.de/geometry> ?o .
												FILTER (geof:ehContains("POINT(5.1578829866667 45.596920046667)"^^geo:wktLiteral,?o))
												?s <http://nuts.de/id> ?id .
									}
										""");

				System.out.println("Q2:");
				try (TupleQueryResult res = tq.evaluate()) {
					printHead(res);
				}
				System.out.println("---------------");
			}
		}
	} finally {
		repo.shutDown();
	}
}

Outputs:


Lucene: true
16:18:40.680 [main] INFO  o.e.rdf4j.sail.lucene.LuceneSail - Reindexing sail: clearing...
16:18:40.715 [main] INFO  o.e.rdf4j.sail.lucene.LuceneSail - Reindexing sail: adding...
16:18:43.312 [main] INFO  o.e.rdf4j.sail.lucene.LuceneSail - Reindexing sail: done.
Q1:
---------------
Q2:
[o="POLYGON ((5.623743 45.613268, 5.622165 45.611559, 5.622525 45.608982, 5.623955 45.607738, 5.623947 45.606152, 5.623021 45.604282, 5.623773 45.603002, 5.625588 45.601193, 5.631302 45.598053, 5.63766 45.589627, 5.645157 45.583778, 5.646907 45.577018, 5.661488 45.56609, 5.669834 45.563224, 5.673315 45.559363, 5.670874 45.555019, 5.675186 45.552766, 5.673112 45.550262, 5.672234 45.546325, 5.674637 45.545803, 5.679741 45.546507, 5.681068 45.541382, 5.673342 45.543456, 5.67072 45.537752, 5.676136 45.531192, 5.691104 45.527887, 5.691247 45.521805, 5.695682 45.519961, 5.701052 45.517683, 5.701649 45.509003, 5.712157 45.506821, 5.710816 45.502288, 5.71397 45.497483, 5.712593 45.495904, 5.715677 45.495045, 5.714518 45.491794, 5.718266 45.488331, 5.719738 45.483396, 5.736528 45.471856, 5.733719 45.466764, 5.735443 45.462524, 5.735835 45.45747, 5.733126 45.455031, 5.73221 45.453663, 5.732036 45.451867, 5.735222 45.446457, 5.739123 45.445393, 5.73846 45.442937, 5.739984 45.437578, 5.757663 45.434922, 5.759794 45.435261, 5.760693 45.436359, 5.766622 45.440027, 5.782851 45.441634, 5.796823 45.438192, 5.798725 45.434206, 5.801339 45.432238, 5.809944 45.42576, 5.819246 45.421623, 5.834623 45.420198, 5.853689 45.416789, 5.861123 45.40955, 5.881143 45.40627, 5.890447 45.400176, 5.891843 45.391665, 5.894957 45.389434, 5.900147 45.391851, 5.909253 45.391119, 5.9276 45.415731, 5.924264 45.417224, 5.909168 45.408687, 5.904305 45.408187, 5.901686 45.417495, 5.904882 45.429995, 5.904455 45.432306, 5.90959 45.433582, 5.914411 45.435949, 5.91623 45.439357, 5.918514 45.44005, 5.917339 45.441663, 5.91955 45.442223, 5.921408 45.444234, 5.919747 45.448205, 5.92161 45.450307, 5.922606 45.452842, 5.923179 45.457731, 5.924377 45.459448, 5.924463 45.462733, 5.925513 45.466077, 5.924697 45.467318, 5.92135 45.468011, 5.919057 45.469165, 5.917987 45.472396, 5.915369 45.476443, 5.934154 45.480581, 5.953359 45.48481, 5.959376 45.488331, 5.967043 45.492153, 5.974566 45.491521, 5.976952 45.488331, 5.981954 45.486482, 5.984546 45.479927, 5.990222 45.475829, 6.010292 45.472645, 6.008142 45.460062, 6.011132 45.458338, 6.008517 45.453848, 6.049233 45.437803, 6.053183 45.439472, 6.05442 45.440737, 6.05991 45.443436, 6.063162 45.444228, 6.073254 45.44398, 6.076274 45.443249, 6.082375 45.443585, 6.08611 45.443009, 6.090842 45.444076, 6.092602 45.444412, 6.093599 45.443072, 6.096409 45.442077, 6.095533 45.439539, 6.093396 45.436324, 6.095015 45.434739, 6.094222 45.433414, 6.094513 45.432054, 6.102554 45.433674, 6.110051 45.43575, 6.120569 45.438663, 6.13096 45.434838, 6.144674 45.414092, 6.1769 45.393266, 6.190916 45.368842, 6.180903 45.360969, 6.170011 45.359538, 6.174675 45.355681, 6.194761 45.352244, 6.190857 45.345702, 6.191428 45.339606, 6.192366 45.338222, 6.188216 45.334358, 6.187807 45.333066, 6.184446 45.317952, 6.155588 45.311771, 6.152835 45.303633, 6.141244 45.298785, 6.142017 45.295251, 6.132155 45.287827, 6.130837 45.283872, 6.133103 45.271533, 6.138839 45.266501, 6.140136 45.260777, 6.138287 45.2559, 6.125701 45.244269, 6.128018 45.231272, 6.141296 45.221653, 6.138656 45.213178, 6.158508 45.203182, 6.161919 45.188405, 6.15377 45.170595, 6.146633 45.165415, 6.147141 45.15907, 6.143317 45.153939, 6.146215 45.153939, 6.158317 45.150875, 6.162354 45.151285, 6.165576 45.153939, 6.169247 45.153939, 6.17415 45.161035, 6.180997 45.164852, 6.190683 45.163451, 6.210185 45.155497, 6.211747 45.153939, 6.223535 45.142182, 6.251033 45.149764, 6.265014 45.139318, 6.26057 45.126844, 6.256252 45.121885, 6.246476 45.119839, 6.239872 45.113117, 6.229483 45.108141, 6.230097 45.097856, 6.243396 45.070192, 6.23853 45.067575, 6.220081 45.065369, 6.214967 45.048306, 6.209102 45.04141, 6.209147 45.029566, 6.202963 45.022442, 6.203924 45.012471, 6.204915 45.012467, 6.211529 45.009233, 6.251761 44.9967, 6.25419 44.995137, 6.256529 44.99681, 6.260012 44.997777, 6.263719 44.997069, 6.266077 44.998291, 6.270788 44.998493, 6.275559 45.000449, 6.277798 45.000684, 6.285184 45.000114, 6.297558 45.003663, 6.301334 45.004077, 6.303602 45.00296, 6.306396 45.004751, 6.313314 45.003845, 6.318202 45.003859, 6.322736 44.998764, 6.316826 44.990328, 6.315653 44.979842, 6.32891 44.968357, 6.323682 44.961781, 6.323739 44.952585, 6.330485 44.94695, 6.358166 44.941575, 6.353558 44.925565, 6.356548 44.92201, 6.358589 44.906543, 6.354545 44.897712, 6.358493 44.88786, 6.351439 44.88168, 6.350564 44.876309, 6.354608 44.854787, 6.344553 44.849671, 6.336317 44.84837, 6.321224 44.853527, 6.316798 44.861417, 6.310066 44.864797, 6.304217 44.872858, 6.294397 44.874052, 6.282092 44.870573, 6.268314 44.869712, 6.258932 44.863866, 6.25289 44.854725, 6.248266 44.851969, 6.225049 44.852345, 6.196376 44.858978, 6.187752 44.85409, 6.172652 44.854336, 6.169664 44.852389, 6.157223 44.858631, 6.144885 44.858555, 6.132986 44.864031, 6.112428 44.844924, 6.110051 44.844404, 6.101521 44.842539, 6.097325 44.838227, 6.094372 44.836661, 6.089943 44.835723, 6.087932 44.83291, 6.08549 44.832353, 6.078985 44.828558, 6.073303 44.827796, 6.071379 44.825511, 6.069118 44.824822, 6.066943 44.82142, 6.060041 44.819888, 6.05856 44.819037, 6.056496 44.815811, 6.050245 44.818775, 6.030216 44.838098, 6.027351 44.837823, 6.025503 44.83667, 6.021827 44.837549, 6.01554 44.835274, 6.011946 44.831431, 6.00941 44.830381, 6.007741 44.823855, 6.00486 44.820439, 5.998184 44.818941, 5.996166 44.817874, 5.988314 44.817944, 5.984898 44.818904, 5.979185 44.818588, 5.973196 44.814815, 5.969344 44.813952, 5.964649 44.811756, 5.960236 44.811982, 5.957422 44.808374, 5.949522 44.804527, 5.953059 44.80041, 5.97778 44.790983, 5.980276 44.781177, 5.9574 44.773251, 5.953166 44.77131, 5.951848 44.769499, 5.952496 44.767587, 5.952472 44.76214, 5.951122 44.759618, 5.93826 44.763095, 5.934154 44.760725, 5.919687 44.752375, 5.910021 44.75755, 5.900745 44.75802, 5.891637 44.754667, 5.88545 44.747284, 5.866212 44.751343, 5.848526 44.7514, 5.840416 44.756527, 5.827098 44.759688, 5.828892 44.741653, 5.818422 44.730957, 5.81068 44.713269, 5.80147 44.706777, 5.774042 44.698113, 5.756741 44.6967, 5.746536 44.70163, 5.737619 44.712372, 5.719097 44.714389, 5.708992 44.721593, 5.704057 44.729297, 5.69998 44.728701, 5.698786 44.722066, 5.69108 44.722203, 5.688064 44.723509, 5.670788 44.724096, 5.663155 44.725488, 5.661244 44.720721, 5.654848 44.722525, 5.652267 44.722648, 5.649561 44.72408, 5.647099 44.7241, 5.643981 44.731575, 5.638817 44.732891, 5.63591 44.732843, 5.63447 44.736487, 5.630624 44.740022, 5.62906 44.744795, 5.626314 44.753294, 5.622377 44.754032, 5.608521 44.755645, 5.586972 44.76358, 5.581973 44.772005, 5.582044 44.777866, 5.546106 44.795124, 5.544521 44.789156, 5.553215 44.778687, 5.554091 44.768163, 5.535887 44.775401, 5.482022 44.786585, 5.477902 44.789021, 5.478787 44.792561, 5.463998 44.793248, 5.459356 44.800063, 5.475498 44.807435, 5.47748 44.816214, 5.48477 44.823064, 5.482316 44.82327, 5.48007 44.822704, 5.476221 44.823974, 5.471649 44.823645, 5.463798 44.825974, 5.475009 44.867049, 5.470606 44.879503, 5.48023 44.897233, 5.483565 44.923009, 5.477676 44.966755, 5.488355 44.989658, 5.493592 44.996135, 5.484979 45.004698, 5.480403 45.012876, 5.481937 45.018918, 5.483615 45.022787, 5.476048 45.025017, 5.478033 45.033648, 5.465232 45.043544, 5.466496 45.05362, 5.475893 45.070816, 5.483798 45.073101, 5.494191 45.071666, 5.489658 45.075971, 5.48855 45.079063, 5.487113 45.080635, 5.483498 45.081863, 5.48296 45.083814, 5.481001 45.083995, 5.478784 45.085228, 5.474928 45.085599, 5.469302 45.088594, 5.466609 45.08704, 5.460983 45.086425, 5.457893 45.083226, 5.457489 45.081662, 5.455269 45.07924, 5.45525 45.077754, 5.452256 45.076488, 5.451519 45.074664, 5.447813 45.071788, 5.438877 45.063151, 5.435081 45.054902, 5.423893 45.054527, 5.411548 45.045214, 5.394104 45.044187, 5.397266 45.038331, 5.385438 45.035392, 5.37213 45.043448, 5.352337 45.04696, 5.344269 45.049724, 5.341266 45.061159, 5.33621 45.062146, 5.33335 45.059989, 5.325309 45.055691, 5.320842 45.056077, 5.320481 45.051857, 5.31785 45.051342, 5.308315 45.053516, 5.306276 45.05339, 5.305798 45.055384, 5.307685 45.057403, 5.305856 45.058848, 5.305324 45.061022, 5.301793 45.061476, 5.300645 45.062587, 5.29453 45.062247, 5.293521 45.063578, 5.291619 45.06389, 5.288479 45.060173, 5.278591 45.060398, 5.274682 45.056953, 5.27257 45.055017, 5.270505 45.054387, 5.267666 45.054733, 5.266331 45.056163, 5.266093 45.060085, 5.262867 45.059126, 5.260519 45.059143, 5.252154 45.060929, 5.244583 45.06067, 5.243851 45.062444, 5.244518 45.066972, 5.236785 45.068471, 5.232557 45.070472, 5.230377 45.0725, 5.227497 45.077211, 5.226125 45.079181, 5.224173 45.079906, 5.218403 45.080948, 5.213452 45.082743, 5.208205 45.08422, 5.193556 45.083499, 5.187023 45.084919, 5.181985 45.084544, 5.17832 45.082433, 5.173006 45.076394, 5.171182 45.069015, 5.169325 45.067479, 5.162636 45.065569, 5.160821 45.066336, 5.156793 45.065809, 5.156991 45.067198, 5.151485 45.071605, 5.148897 45.074416, 5.148564 45.0769, 5.145689 45.076558, 5.141419 45.073516, 5.139025 45.072622, 5.134542 45.074671, 5.137099 45.080554, 5.141028 45.078244, 5.145637 45.081011, 5.154177 45.080247, 5.162894 45.098426, 5.166113 45.099253, 5.170949 45.10336, 5.172867 45.10359, 5.175263 45.107219, 5.177037 45.108344, 5.180327 45.112049, 5.183151 45.117557, 5.186894 45.120126, 5.18828 45.128213, 5.186798 45.134314, 5.190058 45.140081, 5.18289 45.148947, 5.190659 45.153939, 5.189358 45.163952, 5.188557 45.170965, 5.175592 45.181177, 5.169779 45.194433, 5.168436 45.197776, 5.165202 45.198573, 5.16742 45.210133, 5.171634 45.21287, 5.174735 45.213736, 5.178709 45.216974, 5.183329 45.217666, 5.195887 45.217093, 5.201719 45.2174, 5.201294 45.219032, 5.200212 45.220266, 5.195179 45.222961, 5.190838 45.224009, 5.190146 45.226636, 5.18457 45.23119, 5.183048 45.236532, 5.182784 45.241579, 5.181829 45.242818, 5.179508 45.243778, 5.176546 45.248399, 5.158696 45.246912, 5.156981 45.249738, 5.159283 45.254459, 5.153105 45.256304, 5.140638 45.243671, 5.131932 45.243848, 5.127019 45.24642, 5.122189 45.245435, 5.124308 45.260329, 5.129931 45.267951, 5.131054 45.285072, 5.138792 45.296434, 5.137626 45.297589, 5.135364 45.298276, 5.122222 45.298179, 5.118476 45.291878, 5.109444 45.288063, 5.087002 45.286097, 5.075412 45.281827, 5.073567 45.283223, 5.070892 45.284819, 5.069896 45.286598, 5.070166 45.289742, 5.068532 45.292834, 5.067891 45.295595, 5.066413 45.298628, 5.059108 45.313623, 5.054323 45.319051, 5.032905 45.318104, 5.020651 45.319291, 5.010957 45.338643, 5.00965 45.34223, 4.988251 45.343511, 4.978251 45.337947, 4.965612 45.334846, 4.959774 45.329559, 4.948149 45.328584, 4.941524 45.327426, 4.934602 45.325112, 4.929393 45.324234, 4.928174 45.322732, 4.903059 45.31019, 4.901264 45.310007, 4.897211 45.304826, 4.894313 45.304217, 4.881053 45.298473, 4.879707 45.296929, 4.85861 45.298516, 4.859313 45.30444, 4.858804 45.308952, 4.850626 45.307237, 4.843391 45.306581, 4.826386 45.302535, 4.809218 45.300785, 4.806945 45.300492, 4.805512 45.29935, 4.80049 45.298357, 4.794831 45.303012, 4.788935 45.306705, 4.781537 45.309874, 4.769932 45.316014, 4.763354 45.321954, 4.761852 45.324056, 4.760533 45.32746, 4.760835 45.336409, 4.761048 45.338384, 4.763779 45.344483, 4.769298 45.344471, 4.773077 45.346748, 4.773245 45.354198, 4.767086 45.357612, 4.756 45.365675, 4.757018 45.371457, 4.759104 45.383289, 4.754847 45.397786, 4.745105 45.407696, 4.743633 45.409796, 4.742108 45.414604, 4.742248 45.417584, 4.743796 45.420248, 4.751209 45.427375, 4.758668 45.431094, 4.759948 45.432597, 4.760545 45.436004, 4.759951 45.438492, 4.75553 45.447048, 4.754936 45.451022, 4.754911 45.453362, 4.756932 45.455704, 4.761985 45.457214, 4.766851 45.457333, 4.770591 45.456577, 4.773388 45.454761, 4.775921 45.45421, 4.779474 45.455033, 4.781322 45.457782, 4.781435 45.460345, 4.779942 45.467083, 4.779992 45.469647, 4.780622 45.470894, 4.78228 45.472208, 4.799126 45.478498, 4.801275 45.479351, 4.813119 45.483859, 4.815247 45.485657, 4.820322 45.4918, 4.825088 45.495339, 4.841452 45.500599, 4.845376 45.503841, 4.86133 45.516848, 4.868482 45.523437, 4.871812 45.527638, 4.87268 45.529823, 4.872528 45.532077, 4.869702 45.534707, 4.866015 45.53668, 4.853701 45.540513, 4.841954 45.542712, 4.836541 45.544814, 4.829619 45.548974, 4.820698 45.558533, 4.815607 45.566235, 4.81232 45.570286, 4.80844 45.572351, 4.782427 45.580684, 4.777129 45.587395, 4.790571 45.586966, 4.804056 45.587525, 4.805591 45.588886, 4.81082 45.589716, 4.814283 45.587939, 4.829948 45.587524, 4.848642 45.579917, 4.857587 45.57652, 4.857702 45.580434, 4.859262 45.582334, 4.861525 45.586963, 4.861355 45.588857, 4.859779 45.590828, 4.866784 45.595396, 4.873449 45.595334, 4.881365 45.598801, 4.882336 45.601794, 4.887713 45.601581, 4.891365 45.601543, 4.903473 45.606346, 4.927082 45.605718, 4.932736 45.607342, 4.936594 45.608918, 4.951224 45.609117, 4.960376 45.610073, 4.970925 45.613199, 4.997961 45.60341, 5.00199 45.613951, 4.998398 45.615297, 4.992571 45.615481, 4.989449 45.61857, 5.00474 45.622544, 5.021266 45.617657, 5.035576 45.613424, 5.043647 45.621332, 5.042248 45.624058, 5.039738 45.625199, 5.039058 45.627016, 5.035087 45.628462, 5.036138 45.630282, 5.039054 45.632192, 5.035146 45.637204, 5.039948 45.643873, 5.038332 45.644947, 5.040555 45.647099, 5.0459 45.647465, 5.048054 45.648223, 5.058062 45.653336, 5.057551 45.654699, 5.054404 45.658556, 5.054029 45.66005, 5.060826 45.666412, 5.063331 45.666442, 5.066413 45.667818, 5.081083 45.676972, 5.089161 45.677197, 5.093279 45.682033, 5.10748 45.688241, 5.104284 45.698296, 5.110371 45.699236, 5.113023 45.701834, 5.120045 45.700566, 5.130699 45.706931, 5.143506 45.700567, 5.15122 45.704569, 5.153993 45.69972, 5.155185 45.701818, 5.159735 45.708897, 5.159237 45.715246, 5.145095 45.719981, 5.133751 45.733394, 5.124592 45.737985, 5.094526 45.73945, 5.089673 45.751051, 5.093544 45.766032, 5.091594 45.767679, 5.069393 45.765482, 5.066413 45.767204, 5.065092 45.772082, 5.059733 45.782137, 5.060354 45.788371, 5.059329 45.791976, 5.066413 45.790425, 5.089299 45.785133, 5.101069 45.813379, 5.103722 45.813673, 5.105392 45.808445, 5.104943 45.803332, 5.106093 45.800107, 5.108263 45.798445, 5.110162 45.797876, 5.113294 45.797998, 5.114612 45.799901, 5.114395 45.801977, 5.111503 45.807135, 5.112465 45.809913, 5.114267 45.810893, 5.117901 45.811478, 5.121731 45.811177, 5.144196 45.804568, 5.147094 45.805846, 5.149098 45.80602, 5.153945 45.803918, 5.158038 45.80341, 5.160364 45.802317, 5.163847 45.798718, 5.166171 45.797624, 5.167911 45.79515, 5.172923 45.795023, 5.177085 45.793387, 5.181509 45.78936, 5.183265 45.785984, 5.18681 45.782095, 5.18754 45.780339, 5.187578 45.776107, 5.189407 45.77291, 5.192865 45.771382, 5.2002 45.77142, 5.207617 45.771816, 5.216213 45.768895, 5.223597 45.76866, 5.228968 45.770502, 5.240201 45.77737, 5.248262 45.781392, 5.255623 45.784308, 5.266894 45.789371, 5.272742 45.794035, 5.273858 45.795671, 5.275553 45.800893, 5.277688 45.803493, 5.282542 45.807598, 5.287962 45.810246, 5.29062 45.814183, 5.291059 45.816377, 5.290785 45.820841, 5.293858 45.827693, 5.299709 45.834696, 5.300533 45.843993, 5.302495 45.848127, 5.306481 45.850363, 5.308698 45.854446, 5.314191 45.858307, 5.329969 45.8641, 5.334153 45.869931, 5.335538 45.874036, 5.338063 45.877794, 5.340919 45.880509, 5.343898 45.88196, 5.351021 45.883706, 5.353832 45.88327, 5.36208 45.879717, 5.368946 45.87566, 5.372349 45.874264, 5.378024 45.869653, 5.380918 45.867234, 5.384172 45.865481, 5.398576 45.860317, 5.404375 45.856872, 5.408579 45.853697, 5.413135 45.852221, 5.414786 45.850646, 5.416314 45.848038, 5.416066 45.844759, 5.418252 45.840106, 5.427035 45.837074, 5.433658 45.8323, 5.435639 45.82977, 5.43633 45.827184, 5.434988 45.82506, 5.430951 45.824271, 5.42519 45.82488, 5.422552 45.823782, 5.421166 45.822019, 5.420475 45.818886, 5.420637 45.816046, 5.421483 45.809315, 5.422518 45.807126, 5.431082 45.801443, 5.438571 45.795434, 5.447082 45.78619, 5.457404 45.780997, 5.460404 45.778302, 5.466053 45.771301, 5.482531 45.754589, 5.489123 45.749541, 5.498151 45.74438, 5.499028 45.74287, 5.502602 45.740158, 5.510084 45.73612, 5.517514 45.731182, 5.52149 45.725487, 5.523925 45.719981, 5.524958 45.717645, 5.527274 45.715463, 5.530422 45.714338, 5.545544 45.713591, 5.553454 45.708404, 5.553489 45.701566, 5.570022 45.697143, 5.575614 45.69108, 5.572558 45.685662, 5.565015 45.684648, 5.557292 45.696338, 5.548344 45.69873, 5.545671 45.687472, 5.550312 45.68185, 5.553928 45.678262, 5.554074 45.672556, 5.567331 45.673077, 5.569017 45.671123, 5.586405 45.667072, 5.588113 45.65988, 5.601826 45.652325, 5.605056 45.634564, 5.614906 45.625413, 5.623743 45.613268), (5.391402 45.04925, 5.389655 45.050138, 5.387722 45.056367, 5.381614 45.055394, 5.3808 45.05122, 5.386499 45.046924, 5.39067 45.046436, 5.391402 45.04925))"^^<http://www.opengis.net/ont/geosparql#wktLiteral>;id="FRK24"]
---------------
Lucene: false
Q1:
[coords="Point(8.6314329 48.3617509)"^^<http://www.opengis.net/ont/geosparql#wktLiteral>;project=https://linkedopendata.eu/entity/Q3297226]
[coords="Point(8.0319328878022 48.28603445)"^^<http://www.opengis.net/ont/geosparql#wktLiteral>;project=https://linkedopendata.eu/entity/Q3297229]
[coords="Point(7.7033313 47.9118288)"^^<http://www.opengis.net/ont/geosparql#wktLiteral>;project=https://linkedopendata.eu/entity/Q3297232]
[coords="Point(8.5069068 48.2120995)"^^<http://www.opengis.net/ont/geosparql#wktLiteral>;project=https://linkedopendata.eu/entity/Q3297257]
[coords="Point(8.4111727 48.4637727)"^^<http://www.opengis.net/ont/geosparql#wktLiteral>;project=https://linkedopendata.eu/entity/Q3297264]
... +5341
---------------
Q2:
---------------

We can notice Q1 empty with lucene and working without it and Q2 empty without Lucene and working with Lucene.

Version

4.3.12

Are you interested in contributing a solution yourself?

Perhaps?

Anything else?

No response

@ate47 ate47 added the 🐞 bug issue is a bug label May 15, 2024
ate47 added a commit to ate47/rdf4j that referenced this issue May 16, 2024
ate47 added a commit to ate47/rdf4j that referenced this issue May 17, 2024
@JervenBolleman
Copy link
Contributor

I am not an expert in anything Geo. But this looks like an improvement to me.

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

Successfully merging a pull request may close this issue.

3 participants