On 19/06/2020 22:49, Martynas Jusevičius wrote:
Hi,
I'm trying to get location-mapping.n3 used by Jena 3.16.0-SNAPSHOT.
Which one? What is the build time? Very recent, at a guess. JENA-1917.
And are you using all the apache-jena-lib jars? (there are two
LocationMappers - RIOT's, and a legacy one).
I placed it in etc/location-mapping.n3
Change the name to .ttl.
and I can see in the logs it's
being read -- but not used afterwards. When http://spinrdf.org/sp# is
resolved, Jena thinks it's not mapped and proceeds to read from HTTP.
Also it looks like the LocationMapper and JenaIOEnvironment do not
agree with each other?
You mean LocationMapper in jena-core logged it. Old world. Legacy. Only
left to keep ontology tests working. Likely to be moved out of src/main.
If you are working directly, use StreamManager. FileManager will have
deprecations next release.
Andy
The former finds the mapping file but the
latter does not? What is the purpose of JenaIOEnvironment at all?
23:43:17,247 [main] DEBUG LocationMapper:392 - Mapping:
http://spinrdf.org/spl => etc/spl.spin.ttl
23:43:17,255 [main] DEBUG LocationMapper:392 - Mapping:
http://spinrdf.org/spl# => etc/spl.spin.ttl
23:43:17,257 [main] DEBUG LocationMapper:392 - Mapping:
http://spinrdf.org/spin => etc/spin.ttl
23:43:17,258 [main] DEBUG LocationMapper:392 - Mapping:
http://spinrdf.org/spin# => etc/spin.ttl
23:43:17,259 [main] DEBUG LocationMapper:392 - Mapping:
http://spinrdf.org/sp => etc/sp.ttl
23:43:17,259 [main] DEBUG LocationMapper:392 - Mapping:
http://spinrdf.org/sp# => etc/sp.ttl
23:43:17,274 [main] DEBUG JenaIOEnvironment:180 - Failed to find
configuration:
location-mapping.ttl;location-mapping.rdf;etc/location-mapping.rdf;etc/location-mapping.ttl
23:43:17,476 [main] DEBUG info:337 - System architecture: 64 bit
23:43:17,566 [main] DEBUG info:336 - System architecture: 64 bit
23:43:18,093 [main] DEBUG AdapterFileManager:412 -
readModel(model,http://spinrdf.org/sp#)
23:43:18,094 [main] DEBUG AdapterFileManager:429 -
readModel(model,http://spinrdf.org/sp#, null)
23:43:18,094 [main] DEBUG StreamManager:144 - Not mapped: http://spinrdf.org/sp#
23:43:19,082 [main] DEBUG HttpOp:1075 - [1] GET http://spinrdf.org/sp
Thanks.
Martynas