Ingen forfatter endnuOvertag den
- Licens
- CC0 1.0 (offentligt eje)Bearbejdet efter pubs.usgs.gov
- Sprog
- English
Can the grammar of a glossary definition become a database? A U.S. Geological Survey report called Grammar to Graph (G2G) tests that idea on geographic language. It takes definitions of landforms such as a bar, a mound or ridge of naturally accumulated sand, gravel or alluvium, and breaks them into the node-edge-node triples of a graph database. The report presents this as a prototype, an early stage of research on how grammar structures in graph databases could support natural-language queries.

Figure 1 from the USGS report: a dependency arc diagram for an example phrase.
The idea
A triple states a fact as subject, predicate and object, the form used by the Resource Description Framework (RDF). English sentences are mostly subject-verb-object, so the report works with the rough analogy between the two, noting that it is only roughly correct. It relies on dependency grammar, which treats the verb as the center of a clause, with the other words linked to it as dependents. Each word in a definition is tagged with its part of speech and its grammatical relation to its head word, using the spaCy language-processing software, and the pairs are mapped by hand to RDF properties. The pipeline used the Ontop virtual knowledge graph system, a PostgreSQL database and the Protégé ontology editor, and covered 27 ontology properties for topographic subgraphs.
Preparing the definitions
The source was a glossary of about 334 topographic feature types and their definitions, edited by hand. Punctuation was normalized: slashes, “and/or,” commas, periods and brackets were replaced or removed, contractions were spelled out, and only active-voice phrases were kept. The first determiner of a definition (“a” or “an”) was read as an “is a” link between the feature and its definition, and terms after “especially” were treated as subclasses.
A first test query retrieved the noun heads of definitions that use “is” or “are” to build the class hierarchy. Further competency questions checked what subjects do to objects, which things relate spatially to others, and which attributes tell subclasses apart. The report’s example is the landform arête, a sharp narrow ridge formed by glacial erosion from both sides, which the report restates as short propositions such as “GlacialErosion formed ridge.”

Figure 3 from the USGS report: part-of-speech dependencies.
What it showed, and what it did not
The report finds that the grammar of definitions can serve as a schema for triples, and that the pipeline is repeatable. Results were checked by hand for geographic sense, and the report adds that it expects queries to be evaluated that way and the patterns refined. The report also tries the method on cultural features: a definition of cropland, land plowed or cultivated for crop production, yields a pattern of agents, objectives and tools in place of a shape, and croplands vary in shape in ways arêtes do not.
The limits are plain. The approach was tested on a glossary, a small body of text; the authors suggest it could suit other text such as land survey notes, social media or chatbot output, but these were not tested. Grammar rules do not match the logic of RDF exactly, so the mapping is an approximation, and the report says accuracy might improve by combining the graph with other AI-assisted processing. The data release that accompanies the report includes three tables: the glossary, the tagged text with its dependency relations, and a lexicon of each word and its occurrences.
Sources
- U.S. Geological Survey, report “Grammar to graph—An approach for semantic transformation of annotations to triples” (https://pubs.usgs.gov/publication/sir20255064/full), with a data release; the report credits the work of Emily Abbott, then a student contractor with USGS; rewritten in hubnx's own words.
Kommentarer

Læs videre
Mere om Natur


