Dataset Viewer
Auto-converted to Parquet
subject
stringlengths
27
33
predicate
stringclasses
27 values
object
stringlengths
1
321
object_type
stringclasses
2 values
object_datatype
stringclasses
0 values
object_language
stringclasses
469 values
https://sws.geonames.org/52428/
http://www.geonames.org/ontology#locationMap
https://www.geonames.org/52428/rubei.html
uri
null
null
https://sws.geonames.org/52428/
http://www.geonames.org/ontology#countryCode
SO
literal
null
null
https://sws.geonames.org/52428/
http://www.geonames.org/ontology#nearbyFeatures
https://sws.geonames.org/52428/nearby.rdf
uri
null
null
https://sws.geonames.org/52428/
http://www.geonames.org/ontology#parentCountry
https://sws.geonames.org/51537/
uri
null
null
https://sws.geonames.org/52428/
http://www.geonames.org/ontology#parentFeature
https://sws.geonames.org/64538/
uri
null
null
https://sws.geonames.org/52428/
http://www.geonames.org/ontology#featureCode
https://www.geonames.org/ontology#P.PPL
uri
null
null
https://sws.geonames.org/52428/
http://www.geonames.org/ontology#name
Rubei
literal
null
null
https://sws.geonames.org/52428/
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.geonames.org/ontology#Feature
uri
null
null
https://sws.geonames.org/52428/
http://www.geonames.org/ontology#parentADM1
https://sws.geonames.org/64538/
uri
null
null
https://sws.geonames.org/52428/
http://www.w3.org/2003/01/geo/wgs84_pos#long
43.46667
literal
null
null
https://sws.geonames.org/52428/
http://www.w3.org/2000/01/rdf-schema#isDefinedBy
https://sws.geonames.org/52428/about.rdf
uri
null
null
https://sws.geonames.org/52428/
http://www.w3.org/2003/01/geo/wgs84_pos#lat
3.03333
literal
null
null
https://sws.geonames.org/52428/
http://www.geonames.org/ontology#featureClass
https://www.geonames.org/ontology#P
uri
null
null
https://sws.geonames.org/52429/
http://www.w3.org/2003/01/geo/wgs84_pos#lat
10.63962
literal
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#parentADM1
https://sws.geonames.org/6268943/
uri
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#parentFeature
https://sws.geonames.org/6268943/
uri
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#nearbyFeatures
https://sws.geonames.org/52429/nearby.rdf
uri
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#countryCode
SO
literal
null
null
https://sws.geonames.org/52429/
http://www.w3.org/2000/01/rdf-schema#isDefinedBy
https://sws.geonames.org/52429/about.rdf
uri
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#name
Roxalay
literal
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#alternateName
Rohale
literal
null
null
https://sws.geonames.org/52429/
http://www.w3.org/2003/01/geo/wgs84_pos#long
43.31371
literal
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#alternateName
Roxalay
literal
null
so
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#featureClass
https://www.geonames.org/ontology#H
uri
null
null
https://sws.geonames.org/52429/
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.geonames.org/ontology#Feature
uri
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#locationMap
https://www.geonames.org/52429/roxalay.html
uri
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#featureCode
https://www.geonames.org/ontology#H.WAD
uri
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#alternateName
Roxalay
literal
null
null
https://sws.geonames.org/52429/
http://www.geonames.org/ontology#parentCountry
https://sws.geonames.org/51537/
uri
null
null
https://sws.geonames.org/52430/
http://www.w3.org/2003/01/geo/wgs84_pos#lat
4.58333
literal
null
null
https://sws.geonames.org/52430/
http://www.geonames.org/ontology#parentCountry
https://sws.geonames.org/51537/
uri
null
null
https://sws.geonames.org/52430/
http://www.w3.org/2000/01/rdf-schema#isDefinedBy
https://sws.geonames.org/52430/about.rdf
uri
null
null
https://sws.geonames.org/52430/
http://www.geonames.org/ontology#name
Roti Dumus
literal
null
null
https://sws.geonames.org/52430/
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.geonames.org/ontology#Feature
uri
null
null
https://sws.geonames.org/52430/
http://www.w3.org/2003/01/geo/wgs84_pos#long
44.33333
literal
null
null
https://sws.geonames.org/52430/
http://www.geonames.org/ontology#nearbyFeatures
https://sws.geonames.org/52430/nearby.rdf
uri
null
null
https://sws.geonames.org/52430/
http://www.geonames.org/ontology#parentFeature
https://sws.geonames.org/64982/
uri
null
null
https://sws.geonames.org/52430/
http://www.geonames.org/ontology#locationMap
https://www.geonames.org/52430/roti-dumus.html
uri
null
null
https://sws.geonames.org/52430/
http://www.geonames.org/ontology#featureClass
https://www.geonames.org/ontology#L
uri
null
null
https://sws.geonames.org/52430/
http://www.geonames.org/ontology#featureCode
https://www.geonames.org/ontology#L.AREA
uri
null
null
https://sws.geonames.org/52430/
http://www.geonames.org/ontology#countryCode
SO
literal
null
null
https://sws.geonames.org/52430/
http://www.geonames.org/ontology#parentADM1
https://sws.geonames.org/64982/
uri
null
null
https://sws.geonames.org/52431/
http://www.geonames.org/ontology#nearbyFeatures
https://sws.geonames.org/52431/nearby.rdf
uri
null
null
https://sws.geonames.org/52431/
http://www.geonames.org/ontology#countryCode
SO
literal
null
null
https://sws.geonames.org/52431/
http://www.w3.org/2000/01/rdf-schema#isDefinedBy
https://sws.geonames.org/52431/about.rdf
uri
null
null
https://sws.geonames.org/52431/
http://www.w3.org/2003/01/geo/wgs84_pos#long
42.56667
literal
null
null
https://sws.geonames.org/52431/
http://www.geonames.org/ontology#parentCountry
https://sws.geonames.org/51537/
uri
null
null
https://sws.geonames.org/52431/
http://www.geonames.org/ontology#name
Aualo Rossada
literal
null
null
https://sws.geonames.org/52431/
http://www.geonames.org/ontology#locationMap
https://www.geonames.org/52431/aualo-rossada.html
uri
null
null
https://sws.geonames.org/52431/
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.geonames.org/ontology#Feature
uri
null
null
https://sws.geonames.org/52431/
http://www.w3.org/2003/01/geo/wgs84_pos#lat
3.18333
literal
null
null
https://sws.geonames.org/52431/
http://www.geonames.org/ontology#featureCode
https://www.geonames.org/ontology#S.TMB
uri
null
null
https://sws.geonames.org/52431/
http://www.geonames.org/ontology#parentFeature
https://sws.geonames.org/58802/
uri
null
null
https://sws.geonames.org/52431/
http://www.geonames.org/ontology#featureClass
https://www.geonames.org/ontology#S
uri
null
null
https://sws.geonames.org/52431/
http://www.geonames.org/ontology#parentADM1
https://sws.geonames.org/58802/
uri
null
null
https://sws.geonames.org/52432/
http://www.geonames.org/ontology#parentFeature
https://sws.geonames.org/64661/
uri
null
null
https://sws.geonames.org/52432/
http://www.geonames.org/ontology#name
Uadi Roscinoin
literal
null
null
https://sws.geonames.org/52432/
http://www.geonames.org/ontology#parentCountry
https://sws.geonames.org/51537/
uri
null
null
https://sws.geonames.org/52432/
http://www.geonames.org/ontology#parentADM1
https://sws.geonames.org/64661/
uri
null
null
https://sws.geonames.org/52432/
http://www.geonames.org/ontology#featureCode
https://www.geonames.org/ontology#H.WAD
uri
null
null
https://sws.geonames.org/52432/
http://www.geonames.org/ontology#featureClass
https://www.geonames.org/ontology#H
uri
null
null
https://sws.geonames.org/52432/
http://www.geonames.org/ontology#countryCode
SO
literal
null
null
https://sws.geonames.org/52432/
http://www.geonames.org/ontology#nearbyFeatures
https://sws.geonames.org/52432/nearby.rdf
uri
null
null
https://sws.geonames.org/52432/
http://www.geonames.org/ontology#locationMap
https://www.geonames.org/52432/uadi-roscinoin.html
uri
null
null
https://sws.geonames.org/52432/
http://www.w3.org/2000/01/rdf-schema#isDefinedBy
https://sws.geonames.org/52432/about.rdf
uri
null
null
https://sws.geonames.org/52432/
http://www.w3.org/2003/01/geo/wgs84_pos#long
50.65
literal
null
null
https://sws.geonames.org/52432/
http://www.w3.org/2003/01/geo/wgs84_pos#lat
11.21667
literal
null
null
https://sws.geonames.org/52432/
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.geonames.org/ontology#Feature
uri
null
null
https://sws.geonames.org/52433/
http://www.geonames.org/ontology#name
Bur Rorti Ali Gis
literal
null
null
https://sws.geonames.org/52433/
http://www.geonames.org/ontology#parentFeature
https://sws.geonames.org/58802/
uri
null
null
https://sws.geonames.org/52433/
http://www.geonames.org/ontology#featureClass
https://www.geonames.org/ontology#T
uri
null
null
https://sws.geonames.org/52433/
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.geonames.org/ontology#Feature
uri
null
null
https://sws.geonames.org/52433/
http://www.geonames.org/ontology#featureCode
https://www.geonames.org/ontology#T.HLL
uri
null
null
https://sws.geonames.org/52433/
http://www.geonames.org/ontology#parentADM1
https://sws.geonames.org/58802/
uri
null
null
https://sws.geonames.org/52433/
http://www.w3.org/2003/01/geo/wgs84_pos#long
42.73333
literal
null
null
https://sws.geonames.org/52433/
http://www.geonames.org/ontology#countryCode
SO
literal
null
null
https://sws.geonames.org/52433/
http://www.geonames.org/ontology#nearbyFeatures
https://sws.geonames.org/52433/nearby.rdf
uri
null
null
https://sws.geonames.org/52433/
http://www.w3.org/2000/01/rdf-schema#isDefinedBy
https://sws.geonames.org/52433/about.rdf
uri
null
null
https://sws.geonames.org/52433/
http://www.geonames.org/ontology#parentCountry
https://sws.geonames.org/51537/
uri
null
null
https://sws.geonames.org/52433/
http://www.geonames.org/ontology#locationMap
https://www.geonames.org/52433/bur-rorti-ali-gis.html
uri
null
null
https://sws.geonames.org/52433/
http://www.w3.org/2003/01/geo/wgs84_pos#lat
3.8
literal
null
null
https://sws.geonames.org/52434/
http://www.geonames.org/ontology#nearbyFeatures
https://sws.geonames.org/52434/nearby.rdf
uri
null
null
https://sws.geonames.org/52434/
http://www.geonames.org/ontology#countryCode
SO
literal
null
null
https://sws.geonames.org/52434/
http://www.w3.org/2003/01/geo/wgs84_pos#lat
10.26667
literal
null
null
https://sws.geonames.org/52434/
http://www.geonames.org/ontology#name
Ror
literal
null
null
https://sws.geonames.org/52434/
http://www.w3.org/2003/01/geo/wgs84_pos#long
46.91667
literal
null
null
https://sws.geonames.org/52434/
http://www.geonames.org/ontology#parentCountry
https://sws.geonames.org/51537/
uri
null
null
https://sws.geonames.org/52434/
http://www.geonames.org/ontology#parentADM1
https://sws.geonames.org/52187/
uri
null
null
https://sws.geonames.org/52434/
http://www.geonames.org/ontology#featureClass
https://www.geonames.org/ontology#L
uri
null
null
https://sws.geonames.org/52434/
http://www.geonames.org/ontology#featureCode
https://www.geonames.org/ontology#L.AREA
uri
null
null
https://sws.geonames.org/52434/
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.geonames.org/ontology#Feature
uri
null
null
https://sws.geonames.org/52434/
http://www.geonames.org/ontology#parentFeature
https://sws.geonames.org/52187/
uri
null
null
https://sws.geonames.org/52434/
http://www.geonames.org/ontology#locationMap
https://www.geonames.org/52434/ror.html
uri
null
null
https://sws.geonames.org/52434/
http://www.w3.org/2000/01/rdf-schema#isDefinedBy
https://sws.geonames.org/52434/about.rdf
uri
null
null
https://sws.geonames.org/52435/
http://www.geonames.org/ontology#nearbyFeatures
https://sws.geonames.org/52435/nearby.rdf
uri
null
null
https://sws.geonames.org/52435/
http://www.geonames.org/ontology#parentCountry
https://sws.geonames.org/51537/
uri
null
null
https://sws.geonames.org/52435/
http://www.geonames.org/ontology#parentFeature
https://sws.geonames.org/57060/
uri
null
null
https://sws.geonames.org/52435/
http://www.geonames.org/ontology#locationMap
https://www.geonames.org/52435/roqorey.html
uri
null
null
https://sws.geonames.org/52435/
http://www.geonames.org/ontology#parentADM1
https://sws.geonames.org/57060/
uri
null
null
https://sws.geonames.org/52435/
http://www.w3.org/2003/01/geo/wgs84_pos#long
45.6369
literal
null
null
End of preview. Expand in Data Studio

GeoNames RDF

Dataset Description

World geographic database with place names and coordinates

Original Source: http://download.geonames.org/all-geonames-rdf.zip

Dataset Summary

This dataset contains RDF triples from GeoNames RDF converted to HuggingFace dataset format for easy use in machine learning pipelines.

  • Format: Originally xml, converted to HuggingFace Dataset
  • Size: 3.0 GB (extracted)
  • Entities: ~11M places
  • Triples: ~123M
  • Original License: CC BY 4.0

Recommended Use

Geographic data, location-based services

Notes\n\nCommunity-contributed. Daily updates with periodic RDF dumps.

Dataset Format: Lossless RDF Representation

This dataset uses a standard lossless format for representing RDF (Resource Description Framework) data in HuggingFace Datasets. All semantic information from the original RDF knowledge graph is preserved, enabling perfect round-trip conversion between RDF and HuggingFace formats.

Schema

Each RDF triple is represented as a row with 6 fields:

Field Type Description Example
subject string Subject of the triple (URI or blank node) "http://schema.org/Person"
predicate string Predicate URI "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
object string Object of the triple "John Doe" or "http://schema.org/Thing"
object_type string Type of object: "uri", "literal", or "blank_node" "literal"
object_datatype string XSD datatype URI (for typed literals) "http://www.w3.org/2001/XMLSchema#integer"
object_language string Language tag (for language-tagged literals) "en"

Example: RDF Triple Representation

Original RDF (Turtle):

<http://example.org/John> <http://schema.org/name> "John Doe"@en .

HuggingFace Dataset Row:

{
  "subject": "http://example.org/John",
  "predicate": "http://schema.org/name",
  "object": "John Doe",
  "object_type": "literal",
  "object_datatype": None,
  "object_language": "en"
}

Loading the Dataset

from datasets import load_dataset

# Load the dataset
dataset = load_dataset("CleverThis/geonames")

# Access the data
data = dataset["data"]

# Iterate over triples
for row in data:
    subject = row["subject"]
    predicate = row["predicate"]
    obj = row["object"]
    obj_type = row["object_type"]

    print(f"Triple: ({subject}, {predicate}, {obj})")
    print(f"  Object type: {obj_type}")
    if row["object_language"]:
        print(f"  Language: {row['object_language']}")
    if row["object_datatype"]:
        print(f"  Datatype: {row['object_datatype']}")

Converting Back to RDF

The dataset can be converted back to any RDF format (Turtle, N-Triples, RDF/XML, etc.) with zero information loss:

from datasets import load_dataset
from rdflib import Graph, URIRef, Literal, BNode

def convert_to_rdf(dataset_name, output_file="output.ttl", split="data"):
    """Convert HuggingFace dataset back to RDF Turtle format."""
    # Load dataset
    dataset = load_dataset(dataset_name)

    # Create RDF graph
    graph = Graph()

    # Convert each row to RDF triple
    for row in dataset[split]:
        # Subject
        if row["subject"].startswith("_:"):
            subject = BNode(row["subject"][2:])
        else:
            subject = URIRef(row["subject"])

        # Predicate (always URI)
        predicate = URIRef(row["predicate"])

        # Object (depends on object_type)
        if row["object_type"] == "uri":
            obj = URIRef(row["object"])
        elif row["object_type"] == "blank_node":
            obj = BNode(row["object"][2:])
        elif row["object_type"] == "literal":
            if row["object_datatype"]:
                obj = Literal(row["object"], datatype=URIRef(row["object_datatype"]))
            elif row["object_language"]:
                obj = Literal(row["object"], lang=row["object_language"])
            else:
                obj = Literal(row["object"])

        graph.add((subject, predicate, obj))

    # Serialize to Turtle (or any RDF format)
    graph.serialize(output_file, format="turtle")
    print(f"Exported {len(graph)} triples to {output_file}")
    return graph

# Usage
graph = convert_to_rdf("CleverThis/geonames", "reconstructed.ttl")

Information Preservation Guarantee

This format preserves 100% of RDF information:

  • βœ… URIs: Exact string representation preserved
  • βœ… Literals: Full text content preserved
  • βœ… Datatypes: XSD and custom datatypes preserved (e.g., xsd:integer, xsd:dateTime)
  • βœ… Language Tags: BCP 47 language tags preserved (e.g., @en, @fr, @ja)
  • βœ… Blank Nodes: Node structure preserved (identifiers may change but graph isomorphism maintained)

Round-trip guarantee: Original RDF β†’ HuggingFace β†’ Reconstructed RDF produces semantically identical graphs.

Querying the Dataset

You can filter and query the dataset like any HuggingFace dataset:

from datasets import load_dataset

dataset = load_dataset("CleverThis/geonames")

# Find all triples with English literals
english_literals = dataset["data"].filter(
    lambda x: x["object_type"] == "literal" and x["object_language"] == "en"
)
print(f"Found {len(english_literals)} English literals")

# Find all rdf:type statements
type_statements = dataset["data"].filter(
    lambda x: "rdf-syntax-ns#type" in x["predicate"]
)
print(f"Found {len(type_statements)} type statements")

# Convert to Pandas for analysis
import pandas as pd
df = dataset["data"].to_pandas()

# Analyze predicate distribution
print(df["predicate"].value_counts())

Dataset Format

The dataset contains all triples in a single data split, suitable for machine learning tasks such as:

  • Knowledge graph completion
  • Link prediction
  • Entity embedding
  • Relation extraction
  • Graph neural networks

Format Specification

For complete technical documentation of the RDF-to-HuggingFace format, see:

πŸ“– RDF to HuggingFace Format Specification

The specification includes:

  • Detailed schema definition
  • All RDF node type mappings
  • Performance benchmarks
  • Edge cases and limitations
  • Complete code examples

Conversion Metadata

  • Source Format: xml
  • Original Size: 3.0 GB
  • Conversion Tool: CleverErnie RDF Pipeline
  • Format Version: 1.0
  • Conversion Date: 2025-11-05

Citation

If you use this dataset, please cite the original source:

Original Dataset: GeoNames RDF URL: http://download.geonames.org/all-geonames-rdf.zip License: CC BY 4.0

Dataset Preparation

This dataset was prepared using the CleverErnie GISM framework:

# Download original dataset
cleverernie download-dataset -d geonames

# Convert to HuggingFace format
python scripts/convert_rdf_to_hf_dataset.py \
    datasets/geonames/[file] \
    hf_datasets/geonames \
    --format xml

# Upload to HuggingFace Hub
python scripts/upload_all_datasets.py --dataset geonames

Additional Information

Original Source

http://download.geonames.org/all-geonames-rdf.zip

Conversion Details

  • Converted using: CleverErnie GISM
  • Conversion script: scripts/convert_rdf_to_hf_dataset.py
  • Dataset format: Single 'data' split with all triples

Maintenance

This dataset is maintained by the CleverThis organization.

Downloads last month
47