Skip to content

Commit

Permalink
define user and changeset prefixes for OHM
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Jan 10, 2025
1 parent 0dc87ed commit bd5dc2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/ttl/Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ osm2rdf::ttl::Writer<T>::Writer(const osm2rdf::config::Config& config,
{osm2rdf::ttl::constants::NAMESPACE__OHM_RELATION,
"https://www.openhistoricalmap.org/relation/"},
{osm2rdf::ttl::constants::NAMESPACE__OHM_WAY,
"https://www.openhistoricalmap.org/way/"}};
"https://www.openhistoricalmap.org/way/"},
{osm2rdf::ttl::constants::NAMESPACE__OHM_USER,
"https://www.openhistoricalmap.org/user/"},
{osm2rdf::ttl::constants::NAMESPACE__OHM_CHANGESET,
"https://www.openhistoricalmap.org/changeset/"},
};

// Generate constants
osm2rdf::ttl::constants::IRI__GEOSPARQL__AS_WKT =
Expand Down
8 changes: 4 additions & 4 deletions tests/ttl/Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,8 @@ TEST(TTL_WriterTTL, writeStatisticJson) {
statsBuffer << statsIFStream.rdbuf();

ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"blankNodes\": 3"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"header\": 22"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"lines\": 27"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"header\": 24"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"lines\": 29"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"triples\": 5"));

// Cleanup
Expand Down Expand Up @@ -766,8 +766,8 @@ TEST(TTL_WriterQLEVER, writeStatisticJson) {
statsBuffer << statsIFStream.rdbuf();

ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"blankNodes\": 3"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"header\": 22"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"lines\": 27"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"header\": 24"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"lines\": 29"));
ASSERT_THAT(statsBuffer.str(), ::testing::HasSubstr("\"triples\": 5"));

// Cleanup
Expand Down

0 comments on commit bd5dc2d

Please sign in to comment.