Discussion Forum

Error Loading Example social_network graph

Hello,
I’m brand new to Grakn and just trying it out.,but am immediately running into problems when I try to import the example social_network schema. See the output below.

The core server started just fine.

Any help would be most appreciated.

Warm Regards,
Brendan

**grakn-core-all-mac-1.7.0** ./grakn console --keyspace social_network --file ./schema.gql

13:44:21,586 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]

13:44:21,586 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]

13:44:21,586 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/Users/Brendan/Downloads/grakn-core-all-mac-1.7.0/console/services/lib/console-binary-jar.jar!/logback.xml]

13:44:21,590 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.

13:44:21,590 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/Users/Brendan/Downloads/grakn-core-all-mac-1.7.0/console/services/lib/console-binary-jar.jar!/logback.xml]

13:44:21,590 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/Users/Brendan/Downloads/grakn-core-all-mac-1.7.0/console/conf/logback.xml]

13:44:21,675 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@47fd17e3 - URL [jar:file:/Users/Brendan/Downloads/grakn-core-all-mac-1.7.0/console/services/lib/console-binary-jar.jar!/logback.xml] is not of type file

13:44:21,811 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set

13:44:21,813 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]

13:44:21,822 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]

13:44:21,833 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property

13:44:21,948 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO

13:44:21,948 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]

13:44:21,948 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.

13:44:21,950 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7cdbc5d3 - Registering current configuration as safe fallback point

Loading: ./schema.gql

...

{}

Failed to load file:

INVALID_ARGUMENT: InvalidKBException-A structural validation error has occurred. Please correct the [`8`] errors found. 

Rule [genderizeParentships3] asserts [$c] plays role [son] that it can never play

Rule [genderizeParentships3] asserts [$p] plays role [mother] that it can never play

Rule [genderizeParentships4] asserts [$c] plays role [daughter] that it can never play

Rule [genderizeParentships4] asserts [$p] plays role [mother] that it can never play

Rule [genderizeParentships1] asserts [$p] plays role [father] that it can never play

Rule [genderizeParentships1] asserts [$c] plays role [son] that it can never play

Rule [genderizeParentships2] asserts [$c] plays role [daughter] that it can never play

Rule [genderizeParentships2] asserts [$p] plays role [father] that it can never play

. Please check server logs for the stack trace.

Thank you for reporting this, will be fixed today! It should be compatible the current grakn core versions. We just improved our rule validation and found an unused rule in the quickstart with it that our CI didn’t catch :smiley:

Please try downloading the updated schema :slight_smile: