-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi,
I am receiving this error:
File "schema_automator/generalizers/rdf_data_generalizer.py", line 43, in convert
sv = SchemaView(schemas[0])
IndexError: list index out of range
And the command I am running:
schemauto --verbose generalize-rdf graph.ttl -d link_ml
I'm wondering is there something wrong with my initial turtle file. I produced the graph with RDFLib
and here is an example of the output in n3 notation:
import rdflib
graph = rdflib.Graph()
....
graph.serialize(destination='graph.ttl', format='n3')
Here's an example of the input
@prefix ns1: <#> .
<#/%28%2B%29-norpseudoephedrine> ns1:connectsTo <#/schedule_four> .
<#/%28%C2%B1%29cis-4-methylaminorex> ns1:connectsTo <#/schedule_one> .
<#/%281%2C1%E2%80%B2%2C3%2C3%E2%80%B2-tetraoxo%5B5%2C5%E2%80%B2-biisoindoline%5D-2%2C2%E2%80%B2-diyl%29biphenyl> ns1:connectsTo <#/common_monomer_repeating_units> .
<#/%281%2C1-dioxobenzo%5Bb%5Dthiophene-2-yl%29methyloxycarbonyl> ns1:connectsTo <#/amino_acid_protecting_groups> .
<#/%281%2C1-dioxonaptho%5B1%2C2-b%5Dthiophene-2-yl%29methyloxycarbonyl> ns1:connectsTo <#/amino_acid_protecting_groups> .
<#/%281R%2C4S%2C
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request