Skip to content
Snippets Groups Projects
Commit 48d2092a authored by Aurélien Lamercerie's avatar Aurélien Lamercerie
Browse files

Update to generate dot/png AMR graph

parent 0a1f23e5
No related branches found
No related tags found
No related merge requests found
Showing
with 558 additions and 126 deletions
...@@ -19,6 +19,12 @@ import subprocess ...@@ -19,6 +19,12 @@ import subprocess
import shutil import shutil
from rdflib import Graph from rdflib import Graph
import traceback
import logging
from amrlib.graph_processing.amr_plot import AMRPlot
logger = logging.getLogger(__name__)
#============================================================================== #==============================================================================
# Parameters # Parameters
...@@ -31,7 +37,8 @@ OUTPUT_DIR = "outputData/" ...@@ -31,7 +37,8 @@ OUTPUT_DIR = "outputData/"
# Reference Suffix # Reference Suffix
TEXT_SUFFIX = ".txt" TEXT_SUFFIX = ".txt"
SENTENCE_SUFFIX = ".sentence.txt" SENTENCE_SUFFIX = ".sentence.txt"
AMR_GRAPH_SUFFIX = ".amr.graph" PENMAN_AMR_GRAPH_SUFFIX = ".stog.amr.penman"
DOT_AMR_GRAPH_SUFFIX = ".stog.amr.dot"
AMR_RDF_SUFFIX = ".amr.nt" AMR_RDF_SUFFIX = ".amr.nt"
AMR_TTL_SUFFIX = ".amr.ttl" AMR_TTL_SUFFIX = ".amr.ttl"
...@@ -68,9 +75,14 @@ def get_sentence_output_filepath(data_ref): ...@@ -68,9 +75,14 @@ def get_sentence_output_filepath(data_ref):
data_file_name = data_ref + SENTENCE_SUFFIX data_file_name = data_ref + SENTENCE_SUFFIX
return data_dir + data_file_name return data_dir + data_file_name
def get_amr_graph_output_filepath(data): def get_penman_amr_graph_output_filepath(data):
data_dir = get_output_data_dir(data["output_data_dir"])
data_file_name = data["data_ref"] + PENMAN_AMR_GRAPH_SUFFIX
return data_dir + data_file_name
def get_dot_amr_graph_output_filepath(data):
data_dir = get_output_data_dir(data["output_data_dir"]) data_dir = get_output_data_dir(data["output_data_dir"])
data_file_name = data["data_ref"] + AMR_GRAPH_SUFFIX data_file_name = data["data_ref"] + DOT_AMR_GRAPH_SUFFIX
return data_dir + data_file_name return data_dir + data_file_name
def get_amr_rdf_triple_output_filepath(data): def get_amr_rdf_triple_output_filepath(data):
...@@ -85,7 +97,7 @@ def get_amr_rdf_turtle_output_filepath(data): ...@@ -85,7 +97,7 @@ def get_amr_rdf_turtle_output_filepath(data):
def get_amr_graph_amrld_filepath(data): def get_amr_graph_amrld_filepath(data):
data_dir = AMRLD_WORKDIR data_dir = AMRLD_WORKDIR
data_file_name = data["data_ref"] + AMR_GRAPH_SUFFIX data_file_name = data["data_ref"] + PENMAN_AMR_GRAPH_SUFFIX
return data_dir + data_file_name return data_dir + data_file_name
def get_amr_rdf_amrld_filepath(data): def get_amr_rdf_amrld_filepath(data):
...@@ -95,7 +107,7 @@ def get_amr_rdf_amrld_filepath(data): ...@@ -95,7 +107,7 @@ def get_amr_rdf_amrld_filepath(data):
def get_amr_graph_wk_filepath(data): def get_amr_graph_wk_filepath(data):
data_dir = WK_DIR data_dir = WK_DIR
data_file_name = data["data_ref"] + AMR_GRAPH_SUFFIX data_file_name = data["data_ref"] + PENMAN_AMR_GRAPH_SUFFIX
return data_dir + data_file_name return data_dir + data_file_name
def get_amr_rdf_wk_filepath(data): def get_amr_rdf_wk_filepath(data):
...@@ -198,19 +210,33 @@ def prepare_work_data(base_ref): ...@@ -198,19 +210,33 @@ def prepare_work_data(base_ref):
# Sentence Conversion to AMR # Sentence Conversion to AMR
#============================================================================== #==============================================================================
def write_amr_graph_output_file(data): def generate_penman_amr_graph(data):
""" Writing AMR graphs to output files""" """ Writing AMR graph to output file """
graph = data["graph"] graph = data["graph"]
output_file = get_amr_graph_output_filepath(data) output_file = get_penman_amr_graph_output_filepath(data)
print("----- AMR Graph file: " + output_file) print("----- AMR Graph file (penman): " + output_file)
with open(output_file, "w") as writing_file: # w = write with open(output_file, "w") as writing_file: # w = write
# -- old --- insert_id_line(data_ref, writing_file)
writing_file.write(data["id_line_str"]) writing_file.write(data["id_line_str"])
writing_file.write(graph) writing_file.write(graph)
def generate_dot_amr_graph(data):
graph = data["graph"]
try:
output_file = get_dot_amr_graph_output_filepath(data)
format = 'png'
print("----- AMR Graph file (dot, png): " + output_file)
plot = AMRPlot(output_file, format)
plot.build_from_graph(graph)
plot.graph.render()
# plot.view() # -- vizualisation of the dot graph
except:
logger.warning('Exception when trying to plot') # -- TODO
traceback.print_exc()
def convert_sentences_to_graphs(model, data_list): def convert_sentences_to_graphs(model, data_list):
""" Converting text sentences to AMR graphs """ """ Converting text sentences to AMR graphs """
...@@ -229,7 +255,8 @@ def convert_sentences_to_graphs(model, data_list): ...@@ -229,7 +255,8 @@ def convert_sentences_to_graphs(model, data_list):
print("-- Generating AMR graph files") print("-- Generating AMR graph files")
for data in data_list: for data in data_list:
write_amr_graph_output_file(data) generate_penman_amr_graph(data)
generate_dot_amr_graph(data)
return data_list return data_list
...@@ -243,7 +270,7 @@ def convert_amr_graph_to_rdf_triple(data): ...@@ -243,7 +270,7 @@ def convert_amr_graph_to_rdf_triple(data):
""" Converting AMR graph to AMR-RDF triple """ """ Converting AMR graph to AMR-RDF triple """
# -- Filepath # -- Filepath
input_file = get_amr_graph_output_filepath(data) input_file = get_penman_amr_graph_output_filepath(data)
input_amrld_file = get_amr_graph_amrld_filepath(data) input_amrld_file = get_amr_graph_amrld_filepath(data)
output_amrld_file = get_amr_rdf_amrld_filepath(data) output_amrld_file = get_amr_rdf_amrld_filepath(data)
input_wk_file = get_amr_graph_wk_filepath(data) input_wk_file = get_amr_graph_wk_filepath(data)
......
...@@ -12,13 +12,8 @@ ...@@ -12,13 +12,8 @@
# Importing required modules # Importing required modules
#============================================================================== #==============================================================================
import amrlib
import re import re
import os
import sys import sys
import subprocess
import shutil
from rdflib import Graph
#============================================================================== #==============================================================================
......
Of the objects that orbit the Sun indirectly—the natural satellites—two are larger than the smallest planet, Mercury, and one more almost equals it in size. Of the objects that orbit the Sun indirectly—the natural satellites—two are larger than the smallest planet, Mercury, and one more almost equals it in size.
Two objects that orbit the Sun indirectly are larger than the smallest planet, Mercury.
One object that orbit the Sun indirectly is more almost equals than the smallest planet, Mercury in size.
This diff is collapsed.
# ::id SSC-03-02
# ::snt Two objects that orbit the Sun indirectly are larger than the smallest planet, Mercury.
(h / have-degree-91
:ARG1 (o / object
:quant 2
:ARG0-of (o2 / orbit-01
:ARG1 (s / sun)
:manner (ii / indirect)))
:ARG2 (l / large)
:ARG3 (m / more)
:ARG4 (p / planet
:name (n / name
:op1 "Mercury")
:ARG1-of (h2 / have-degree-91
:ARG2 (s2 / small)
:ARG3 (m2 / most))))
\ No newline at end of file
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-EntityType" .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> .
<http://amr.isi.edu/rdf/amr-terms#sun> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/frames/ld/v1.2.2/orbit-01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Frame> .
<http://amr.isi.edu/amr_data/SSC-03-02#o> <http://amr.isi.edu/rdf/amr-terms#quant> "2" .
<http://amr.isi.edu/amr_data/SSC-03-02#p> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/entity-types#planet> .
<http://amr.isi.edu/amr_data/SSC-03-02#h2> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG3> <http://amr.isi.edu/amr_data/SSC-03-02#m2> .
<http://amr.isi.edu/amr_data/SSC-03-02#s2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#small> .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/amr_data/SSC-03-02#o2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/orbit-01> .
<http://amr.isi.edu/amr_data/SSC-03-02#ii> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#indirect> .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/amr_data/SSC-03-02#h> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG4> <http://amr.isi.edu/amr_data/SSC-03-02#p> .
<http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Role" .
<http://amr.isi.edu/rdf/amr-terms#object> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/SSC-03-02#o2> <http://amr.isi.edu/frames/ld/v1.2.2/orbit-01.ARG0> <http://amr.isi.edu/amr_data/SSC-03-02#o> .
<http://amr.isi.edu/amr_data/SSC-03-02#h2> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG1> <http://amr.isi.edu/amr_data/SSC-03-02#p> .
<http://amr.isi.edu/amr_data/SSC-03-02#h> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91> .
<http://amr.isi.edu/amr_data/SSC-03-02#h2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91> .
<http://amr.isi.edu/amr_data/SSC-03-02#root01> <http://amr.isi.edu/rdf/core-amr#root> <http://amr.isi.edu/amr_data/SSC-03-02#h> .
<http://amr.isi.edu/amr_data/SSC-03-02#m> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#more> .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Role" .
<http://amr.isi.edu/amr_data/SSC-03-02#p> <http://www.w3.org/2000/01/rdf-schema#label> "Mercury" .
<http://amr.isi.edu/amr_data/SSC-03-02#h> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG1> <http://amr.isi.edu/amr_data/SSC-03-02#o> .
<http://amr.isi.edu/rdf/amr-terms#manner> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> .
<http://amr.isi.edu/amr_data/SSC-03-02#h> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG2> <http://amr.isi.edu/amr_data/SSC-03-02#l> .
<http://amr.isi.edu/frames/ld/v1.2.2/orbit-01.ARG0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/frames/ld/v1.2.2/orbit-01.ARG1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/amr_data/SSC-03-02#l> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#large> .
<http://amr.isi.edu/amr_data/SSC-03-02#m2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#most> .
<http://amr.isi.edu/amr_data/SSC-03-02#h> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG3> <http://amr.isi.edu/amr_data/SSC-03-02#m> .
<http://amr.isi.edu/rdf/amr-terms#large> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#more> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Concept" .
<http://amr.isi.edu/entity-types#planet> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#NamedEntity> .
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Frame" .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Term" .
<http://amr.isi.edu/rdf/amr-terms#small> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/SSC-03-02#o2> <http://amr.isi.edu/rdf/amr-terms#manner> <http://amr.isi.edu/amr_data/SSC-03-02#ii> .
<http://amr.isi.edu/amr_data/SSC-03-02#h2> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG2> <http://amr.isi.edu/amr_data/SSC-03-02#s2> .
<http://amr.isi.edu/amr_data/SSC-03-02#o2> <http://amr.isi.edu/frames/ld/v1.2.2/orbit-01.ARG1> <http://amr.isi.edu/amr_data/SSC-03-02#s> .
<http://amr.isi.edu/amr_data/SSC-03-02#root01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#AMR> .
<http://amr.isi.edu/amr_data/SSC-03-02#o> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#object> .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Frame> .
<http://amr.isi.edu/amr_data/SSC-03-02#s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#sun> .
<http://amr.isi.edu/rdf/amr-terms#indirect> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#most> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/SSC-03-02#root01> <http://amr.isi.edu/rdf/core-amr#has-id> "SSC-03-02" .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/amr_data/SSC-03-02#root01> <http://amr.isi.edu/rdf/core-amr#has-sentence> "Two objects that orbit the Sun indirectly are larger than the smallest planet, Mercury." .
@prefix ns1: <http://amr.isi.edu/frames/ld/v1.2.2/> .
@prefix ns2: <http://amr.isi.edu/rdf/core-amr#> .
@prefix ns3: <http://amr.isi.edu/rdf/amr-terms#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
ns2:Concept a rdfs:Class ;
rdfs:label "AMR-Concept" .
ns2:Role a rdfs:Class ;
rdfs:label "AMR-Role" .
<http://amr.isi.edu/amr_data/SSC-03-02#h2> a ns1:have-degree-91 ;
ns1:have-degree-91.ARG1 <http://amr.isi.edu/amr_data/SSC-03-02#p> ;
ns1:have-degree-91.ARG2 <http://amr.isi.edu/amr_data/SSC-03-02#s2> ;
ns1:have-degree-91.ARG3 <http://amr.isi.edu/amr_data/SSC-03-02#m2> .
<http://amr.isi.edu/amr_data/SSC-03-02#o2> a ns1:orbit-01 ;
ns1:orbit-01.ARG0 <http://amr.isi.edu/amr_data/SSC-03-02#o> ;
ns1:orbit-01.ARG1 <http://amr.isi.edu/amr_data/SSC-03-02#s> ;
ns3:manner <http://amr.isi.edu/amr_data/SSC-03-02#ii> .
<http://amr.isi.edu/amr_data/SSC-03-02#root01> a ns2:AMR ;
ns2:has-id "SSC-03-02" ;
ns2:has-sentence "Two objects that orbit the Sun indirectly are larger than the smallest planet, Mercury." ;
ns2:root <http://amr.isi.edu/amr_data/SSC-03-02#h> .
ns1:have-degree-91.ARG1 a ns1:FrameRole .
ns1:have-degree-91.ARG2 a ns1:FrameRole .
ns1:have-degree-91.ARG3 a ns1:FrameRole .
ns1:have-degree-91.ARG4 a ns1:FrameRole .
ns1:orbit-01.ARG0 a ns1:FrameRole .
ns1:orbit-01.ARG1 a ns1:FrameRole .
ns3:manner a ns2:Role .
<http://amr.isi.edu/amr_data/SSC-03-02#h> a ns1:have-degree-91 ;
ns1:have-degree-91.ARG1 <http://amr.isi.edu/amr_data/SSC-03-02#o> ;
ns1:have-degree-91.ARG2 <http://amr.isi.edu/amr_data/SSC-03-02#l> ;
ns1:have-degree-91.ARG3 <http://amr.isi.edu/amr_data/SSC-03-02#m> ;
ns1:have-degree-91.ARG4 <http://amr.isi.edu/amr_data/SSC-03-02#p> .
<http://amr.isi.edu/amr_data/SSC-03-02#ii> a ns3:indirect .
<http://amr.isi.edu/amr_data/SSC-03-02#l> a ns3:large .
<http://amr.isi.edu/amr_data/SSC-03-02#m> a ns2:more .
<http://amr.isi.edu/amr_data/SSC-03-02#m2> a ns2:most .
<http://amr.isi.edu/amr_data/SSC-03-02#s> a ns3:sun .
<http://amr.isi.edu/amr_data/SSC-03-02#s2> a ns3:small .
<http://amr.isi.edu/entity-types#planet> a ns2:NamedEntity .
ns1:orbit-01 a ns2:Frame .
ns3:indirect a ns2:Concept .
ns3:large a ns2:Concept .
ns3:object a ns2:Concept .
ns3:small a ns2:Concept .
ns3:sun a ns2:Concept .
ns2:NamedEntity a ns2:Concept ;
rdfs:label "AMR-EntityType",
"AMR-Term" .
ns2:more a ns2:Concept .
ns2:most a ns2:Concept .
<http://amr.isi.edu/amr_data/SSC-03-02#o> a ns3:object ;
ns3:quant "2" .
<http://amr.isi.edu/amr_data/SSC-03-02#p> a <http://amr.isi.edu/entity-types#planet> ;
rdfs:label "Mercury" .
ns1:have-degree-91 a ns2:Frame .
ns2:Frame a ns2:Concept ;
rdfs:label "AMR-PropBank-Frame" .
ns1:FrameRole a ns2:Role ;
rdfs:label "AMR-PropBank-Role" .
# ::id SSC-03-03
# ::snt One object that orbit the Sun indirectly is more almost equals than the smallest planet, Mercury in size.
(h / have-degree-91
:ARG1 (o / object
:quant 1
:ARG0-of (o2 / orbit-01
:ARG1 (s / sun)
:ARG1-of (d / direct-02
:polarity -)))
:ARG2 (e / equal-01
:ARG1 o
:ARG2 (p / planet
:ARG1-of (h2 / have-degree-91
:ARG2 (s2 / small)
:ARG3 (m / most))
:ARG1-of e
:ARG2 p
:name (n / name
:op1 "Mercury"))
:ARG3 (s3 / size))
:ARG3 (m2 / more
:mod (a / almost))
:ARG4 p)
\ No newline at end of file
<http://amr.isi.edu/amr_data/SSC-03-03#p> <http://amr.isi.edu/frames/ld/v1.2.2/equal-01.ARG1-of> <http://amr.isi.edu/amr_data/SSC-03-03#e> .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> .
<http://amr.isi.edu/amr_data/SSC-03-03#h> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG4> <http://amr.isi.edu/amr_data/SSC-03-03#p> .
<http://amr.isi.edu/amr_data/SSC-03-03#s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#sun> .
<http://amr.isi.edu/frames/ld/v1.2.2/equal-01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Frame> .
<http://amr.isi.edu/amr_data/SSC-03-03#h2> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG1> <http://amr.isi.edu/amr_data/SSC-03-03#p> .
<http://amr.isi.edu/amr_data/SSC-03-03#s3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#size> .
<http://amr.isi.edu/amr_data/SSC-03-03#m2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#more> .
<http://amr.isi.edu/rdf/core-amr#most> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/amr-terms#almost> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/SSC-03-03#p> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/entity-types#planet> .
<http://amr.isi.edu/rdf/amr-terms#size> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/SSC-03-03#h> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91> .
<http://amr.isi.edu/frames/ld/v1.2.2/equal-01.ARG2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/amr_data/SSC-03-03#m2> <http://amr.isi.edu/rdf/amr-terms#mod> <http://amr.isi.edu/amr_data/SSC-03-03#a> .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/amr_data/SSC-03-03#o2> <http://amr.isi.edu/frames/ld/v1.2.2/orbit-01.ARG0> <http://amr.isi.edu/amr_data/SSC-03-03#o> .
<http://amr.isi.edu/amr_data/SSC-03-03#p> <http://amr.isi.edu/frames/ld/v1.2.2/planet.ARG2> <http://amr.isi.edu/amr_data/SSC-03-03#p> .
<http://amr.isi.edu/rdf/amr-terms#mod> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> .
<http://amr.isi.edu/amr_data/SSC-03-03#root01> <http://amr.isi.edu/rdf/core-amr#has-sentence> "One object that orbit the Sun indirectly is more almost equals than the smallest planet, Mercury in size." .
<http://amr.isi.edu/amr_data/SSC-03-03#h> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG3> <http://amr.isi.edu/amr_data/SSC-03-03#m2> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Term" .
<http://amr.isi.edu/amr_data/SSC-03-03#o2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/orbit-01> .
<http://amr.isi.edu/amr_data/SSC-03-03#root01> <http://amr.isi.edu/rdf/core-amr#root> <http://amr.isi.edu/amr_data/SSC-03-03#h> .
<http://amr.isi.edu/amr_data/SSC-03-03#e> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/equal-01> .
<http://amr.isi.edu/frames/ld/v1.2.2/orbit-01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Frame> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/SSC-03-03#d> <http://amr.isi.edu/frames/ld/v1.2.2/direct-02.ARG1> <http://amr.isi.edu/amr_data/SSC-03-03#o2> .
<http://amr.isi.edu/amr_data/SSC-03-03#p> <http://www.w3.org/2000/01/rdf-schema#label> "Mercury" .
<http://amr.isi.edu/frames/ld/v1.2.2/equal-01.ARG1-of> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/frames/ld/v1.2.2/orbit-01.ARG0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/frames/ld/v1.2.2/planet.ARG2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/frames/ld/v1.2.2/equal-01.ARG1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/frames/ld/v1.2.2/orbit-01.ARG1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/frames/ld/v1.2.2/direct-02.ARG1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/amr_data/SSC-03-03#d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/direct-02> .
<http://amr.isi.edu/amr_data/SSC-03-03#o> <http://amr.isi.edu/rdf/amr-terms#quant> "1" .
<http://amr.isi.edu/amr_data/SSC-03-03#root01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#AMR> .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Role" .
<http://amr.isi.edu/amr_data/SSC-03-03#e> <http://amr.isi.edu/frames/ld/v1.2.2/equal-01.ARG2> <http://amr.isi.edu/amr_data/SSC-03-03#p> .
<http://amr.isi.edu/amr_data/SSC-03-03#o> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#object> .
<http://amr.isi.edu/rdf/amr-terms#object> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/frames/ld/v1.2.2/direct-02> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Frame> .
<http://amr.isi.edu/amr_data/SSC-03-03#s2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#small> .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Concept" .
<http://amr.isi.edu/rdf/amr-terms#sun> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/SSC-03-03#h2> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG2> <http://amr.isi.edu/amr_data/SSC-03-03#s2> .
<http://amr.isi.edu/frames/ld/v1.2.2/equal-01.ARG3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/amr_data/SSC-03-03#d> <http://amr.isi.edu/rdf/amr-terms#polarity> "-" .
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/amr_data/SSC-03-03#m> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#most> .
<http://amr.isi.edu/rdf/core-amr#more> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Role" .
<http://amr.isi.edu/rdf/amr-terms#small> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Frame> .
<http://amr.isi.edu/amr_data/SSC-03-03#h> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG1> <http://amr.isi.edu/amr_data/SSC-03-03#o> .
<http://amr.isi.edu/amr_data/SSC-03-03#e> <http://amr.isi.edu/frames/ld/v1.2.2/equal-01.ARG1> <http://amr.isi.edu/amr_data/SSC-03-03#o> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-EntityType" .
<http://amr.isi.edu/amr_data/SSC-03-03#h> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG2> <http://amr.isi.edu/amr_data/SSC-03-03#e> .
<http://amr.isi.edu/amr_data/SSC-03-03#e> <http://amr.isi.edu/frames/ld/v1.2.2/equal-01.ARG3> <http://amr.isi.edu/amr_data/SSC-03-03#s3> .
<http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> .
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Frame" .
<http://amr.isi.edu/amr_data/SSC-03-03#h2> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91.ARG3> <http://amr.isi.edu/amr_data/SSC-03-03#m> .
<http://amr.isi.edu/amr_data/SSC-03-03#o2> <http://amr.isi.edu/frames/ld/v1.2.2/orbit-01.ARG1> <http://amr.isi.edu/amr_data/SSC-03-03#s> .
<http://amr.isi.edu/amr_data/SSC-03-03#h2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/frames/ld/v1.2.2/have-degree-91> .
<http://amr.isi.edu/amr_data/SSC-03-03#a> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#almost> .
<http://amr.isi.edu/entity-types#planet> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#NamedEntity> .
<http://amr.isi.edu/amr_data/SSC-03-03#root01> <http://amr.isi.edu/rdf/core-amr#has-id> "SSC-03-03" .
@prefix ns1: <http://amr.isi.edu/frames/ld/v1.2.2/> .
@prefix ns2: <http://amr.isi.edu/rdf/core-amr#> .
@prefix ns3: <http://amr.isi.edu/rdf/amr-terms#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
ns2:Concept a rdfs:Class ;
rdfs:label "AMR-Concept" .
ns2:Role a rdfs:Class ;
rdfs:label "AMR-Role" .
<http://amr.isi.edu/amr_data/SSC-03-03#d> a ns1:direct-02 ;
ns1:direct-02.ARG1 <http://amr.isi.edu/amr_data/SSC-03-03#o2> ;
ns3:polarity "-" .
<http://amr.isi.edu/amr_data/SSC-03-03#h2> a ns1:have-degree-91 ;
ns1:have-degree-91.ARG1 <http://amr.isi.edu/amr_data/SSC-03-03#p> ;
ns1:have-degree-91.ARG2 <http://amr.isi.edu/amr_data/SSC-03-03#s2> ;
ns1:have-degree-91.ARG3 <http://amr.isi.edu/amr_data/SSC-03-03#m> .
<http://amr.isi.edu/amr_data/SSC-03-03#root01> a ns2:AMR ;
ns2:has-id "SSC-03-03" ;
ns2:has-sentence "One object that orbit the Sun indirectly is more almost equals than the smallest planet, Mercury in size." ;
ns2:root <http://amr.isi.edu/amr_data/SSC-03-03#h> .
ns1:direct-02.ARG1 a ns1:FrameRole .
ns1:equal-01.ARG1 a ns1:FrameRole .
ns1:equal-01.ARG1-of a ns1:FrameRole .
ns1:equal-01.ARG2 a ns1:FrameRole .
ns1:equal-01.ARG3 a ns1:FrameRole .
ns1:have-degree-91.ARG1 a ns1:FrameRole .
ns1:have-degree-91.ARG2 a ns1:FrameRole .
ns1:have-degree-91.ARG3 a ns1:FrameRole .
ns1:have-degree-91.ARG4 a ns1:FrameRole .
ns1:orbit-01.ARG0 a ns1:FrameRole .
ns1:orbit-01.ARG1 a ns1:FrameRole .
ns1:planet.ARG2 a ns1:FrameRole .
ns3:mod a ns2:Role .
<http://amr.isi.edu/amr_data/SSC-03-03#a> a ns3:almost .
<http://amr.isi.edu/amr_data/SSC-03-03#h> a ns1:have-degree-91 ;
ns1:have-degree-91.ARG1 <http://amr.isi.edu/amr_data/SSC-03-03#o> ;
ns1:have-degree-91.ARG2 <http://amr.isi.edu/amr_data/SSC-03-03#e> ;
ns1:have-degree-91.ARG3 <http://amr.isi.edu/amr_data/SSC-03-03#m2> ;
ns1:have-degree-91.ARG4 <http://amr.isi.edu/amr_data/SSC-03-03#p> .
<http://amr.isi.edu/amr_data/SSC-03-03#m> a ns2:most .
<http://amr.isi.edu/amr_data/SSC-03-03#m2> a ns2:more ;
ns3:mod <http://amr.isi.edu/amr_data/SSC-03-03#a> .
<http://amr.isi.edu/amr_data/SSC-03-03#o2> a ns1:orbit-01 ;
ns1:orbit-01.ARG0 <http://amr.isi.edu/amr_data/SSC-03-03#o> ;
ns1:orbit-01.ARG1 <http://amr.isi.edu/amr_data/SSC-03-03#s> .
<http://amr.isi.edu/amr_data/SSC-03-03#s> a ns3:sun .
<http://amr.isi.edu/amr_data/SSC-03-03#s2> a ns3:small .
<http://amr.isi.edu/amr_data/SSC-03-03#s3> a ns3:size .
<http://amr.isi.edu/entity-types#planet> a ns2:NamedEntity .
ns1:direct-02 a ns2:Frame .
ns1:equal-01 a ns2:Frame .
ns1:orbit-01 a ns2:Frame .
ns3:almost a ns2:Concept .
ns3:object a ns2:Concept .
ns3:size a ns2:Concept .
ns3:small a ns2:Concept .
ns3:sun a ns2:Concept .
ns2:NamedEntity a ns2:Concept ;
rdfs:label "AMR-EntityType",
"AMR-Term" .
ns2:more a ns2:Concept .
ns2:most a ns2:Concept .
<http://amr.isi.edu/amr_data/SSC-03-03#e> a ns1:equal-01 ;
ns1:equal-01.ARG1 <http://amr.isi.edu/amr_data/SSC-03-03#o> ;
ns1:equal-01.ARG2 <http://amr.isi.edu/amr_data/SSC-03-03#p> ;
ns1:equal-01.ARG3 <http://amr.isi.edu/amr_data/SSC-03-03#s3> .
ns1:have-degree-91 a ns2:Frame .
<http://amr.isi.edu/amr_data/SSC-03-03#o> a ns3:object ;
ns3:quant "1" .
<http://amr.isi.edu/amr_data/SSC-03-03#p> a <http://amr.isi.edu/entity-types#planet> ;
rdfs:label "Mercury" ;
ns1:equal-01.ARG1-of <http://amr.isi.edu/amr_data/SSC-03-03#e> ;
ns1:planet.ARG2 <http://amr.isi.edu/amr_data/SSC-03-03#p> .
ns2:Frame a ns2:Concept ;
rdfs:label "AMR-PropBank-Frame" .
ns1:FrameRole a ns2:Role ;
rdfs:label "AMR-PropBank-Role" .
Of the objects that orbit the Sun indirectly—the natural satellites—two are larger than the smallest planet, Mercury, and one more almost equals it in size. Of the objects that orbit the Sun indirectly—the natural satellites—two are larger than the smallest planet, Mercury, and one more almost equals it in size.
Two objects that orbit the Sun indirectly are larger than the smallest planet, Mercury.
One object that orbit the Sun indirectly is more almost equals than the smallest planet, Mercury in size.
\ No newline at end of file
Of the objects that orbit the Sun indirectly—the natural satellites—two are larger than the smallest planet, Mercury, and one more almost equals it in size. Of the objects that orbit the Sun indirectly—the natural satellites—two are larger than the smallest planet, Mercury, and one more almost equals it in size.
Two objects that orbit the Sun indirectly are larger than the smallest planet, Mercury.
One object that orbit the Sun indirectly is more almost equals than the smallest planet, Mercury in size.
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> . <http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Term" .
<http://amr.isi.edu/amr_data/TEST-01#s2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#sun> . <http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Frame" .
<http://amr.isi.edu/amr_data/TEST-01#root01> <http://amr.isi.edu/rdf/core-amr#has-id> "TEST-01" . <http://amr.isi.edu/amr_data/TEST-01#root01> <http://amr.isi.edu/rdf/core-amr#has-id> "TEST-01" .
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/amr-terms#sun> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/TEST-01#s2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/amr-terms#sun> .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> .
<http://amr.isi.edu/amr_data/TEST-01#root01> <http://amr.isi.edu/rdf/core-amr#has-sentence> "The sun is a star." .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Role" .
<http://amr.isi.edu/entity-types#star> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#NamedEntity> . <http://amr.isi.edu/entity-types#star> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#NamedEntity> .
<http://amr.isi.edu/amr_data/TEST-01#root01> <http://amr.isi.edu/rdf/core-amr#root> <http://amr.isi.edu/amr_data/TEST-01#s> .
<http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> . <http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Role" . <http://amr.isi.edu/amr_data/TEST-01#root01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#AMR> .
<http://amr.isi.edu/amr_data/TEST-01#s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/entity-types#star> . <http://amr.isi.edu/amr_data/TEST-01#s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/entity-types#star> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-EntityType" .
<http://amr.isi.edu/amr_data/TEST-01#s> <http://amr.isi.edu/rdf/amr-terms#domain> <http://amr.isi.edu/amr_data/TEST-01#s2> . <http://amr.isi.edu/amr_data/TEST-01#s> <http://amr.isi.edu/rdf/amr-terms#domain> <http://amr.isi.edu/amr_data/TEST-01#s2> .
<http://amr.isi.edu/rdf/amr-terms#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> . <http://amr.isi.edu/rdf/amr-terms#domain> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/rdf/amr-terms#sun> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/TEST-01#root01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#AMR> .
<http://amr.isi.edu/amr_data/TEST-01#root01> <http://amr.isi.edu/rdf/core-amr#root> <http://amr.isi.edu/amr_data/TEST-01#s> .
<http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Role" .
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Frame" .
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/amr_data/TEST-01#root01> <http://amr.isi.edu/rdf/core-amr#has-sentence> "The sun is a star." .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Term" .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Concept" . <http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Concept" .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-EntityType" .
<http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Role" .
digraph amr_graph {
rankdir=LR size="12,8"
s [label="s/star" shape=circle]
s2 [label="s2/sun" shape=circle]
s -> s2 [label=":domain"]
}
outputData/TEST/TEST-01/TEST-01.stog.amr.dot.png

11.3 KiB

# ::id TEST-01
# ::snt The sun is a star.
(s / star
:domain (s2 / sun))
\ No newline at end of file
# ::id TEST-01
# ::snt The sun is a star.
(s / star
:domain (s2 / sun))
\ No newline at end of file
<http://amr.isi.edu/amr_data/TEST-02#p> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/entity-types#planet> . <http://amr.isi.edu/amr_data/TEST-02#root01> <http://amr.isi.edu/rdf/core-amr#root> <http://amr.isi.edu/amr_data/TEST-02#p> .
<http://amr.isi.edu/amr_data/TEST-02#root01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#AMR> .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> .
<http://amr.isi.edu/amr_data/TEST-02#p> <http://www.w3.org/2000/01/rdf-schema#label> "Earth" . <http://amr.isi.edu/amr_data/TEST-02#p> <http://www.w3.org/2000/01/rdf-schema#label> "Earth" .
<http://amr.isi.edu/amr_data/TEST-02#root01> <http://amr.isi.edu/rdf/core-amr#has-id> "TEST-02" .
<http://amr.isi.edu/entity-types#planet> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#NamedEntity> .
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> . <http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Concept" .
<http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> . <http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-EntityType" . <http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-EntityType" .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/amr_data/TEST-02#root01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#AMR> .
<http://amr.isi.edu/amr_data/TEST-02#root01> <http://amr.isi.edu/rdf/core-amr#has-id> "TEST-02" .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Term" .
<http://amr.isi.edu/entity-types#planet> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#NamedEntity> .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Role> .
<http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Role" .
<http://amr.isi.edu/amr_data/TEST-02#root01> <http://amr.isi.edu/rdf/core-amr#has-sentence> "Earth is a planet." .
<http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Frame" . <http://amr.isi.edu/rdf/core-amr#Frame> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Frame" .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Concept" .
<http://amr.isi.edu/amr_data/TEST-02#root01> <http://amr.isi.edu/rdf/core-amr#has-sentence> "Earth is a planet." .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/rdf/core-amr#Concept> .
<http://amr.isi.edu/rdf/core-amr#Concept> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Role" . <http://amr.isi.edu/rdf/core-amr#Role> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Role" .
<http://amr.isi.edu/amr_data/TEST-02#root01> <http://amr.isi.edu/rdf/core-amr#root> <http://amr.isi.edu/amr_data/TEST-02#p> . <http://amr.isi.edu/frames/ld/v1.2.2/FrameRole> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-PropBank-Role" .
<http://amr.isi.edu/amr_data/TEST-02#p> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://amr.isi.edu/entity-types#planet> .
<http://amr.isi.edu/rdf/core-amr#NamedEntity> <http://www.w3.org/2000/01/rdf-schema#label> "AMR-Term" .
digraph amr_graph {
rankdir=LR size="12,8"
p [label="p/planet" shape=circle]
n [label="n/name" shape=circle]
p -> p [label=":domain"]
p -> n [label=":name"]
node_0 [label="\"Earth\"" shape=rectangle]
n -> node_0 [label=":op1"]
}
outputData/TEST/TEST-02/TEST-02.stog.amr.dot.png

18.4 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment