Failed to apply archetype

I want to use ISO 25964 for thesauri as a skos and skos-(xl) extension .
Setting archetypes is adding a bunch of namespaces to database ?

how to use it? or how to make IOS 25964 as a archetypes

if i make a archetypes, is that ok to not have constraints? but only rdf schema?

rdf schema file linked below

http://pub.tenforce.com/schemas/iso25964/skos-thes

i've forked a archetypes and copy foaf to skos-thes then i want to make database online

but here's the error

please help check

there's skos and skos-xl IMPORT in rdf schema file, should i make that inline like skos-inline?
how to do it?

Can you post the errors in Stardog.log?

You can add namespaces, ontologies and constraints in an archetype in any combination you’d like.

1 Like
ERROR 2020-07-09 14:42:51,791 [stardog-admin-4] com.complexible.stardog.StardogKernel:online(2727): There was a database error while onlining, could not complete successfully
com.complexible.stardog.db.DatabaseException: com.complexible.stardog.StardogException
	at com.complexible.stardog.db.DatabaseImpl.createConnectables(DatabaseImpl.java:412) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.db.DatabaseImpl.initializeConnectables(DatabaseImpl.java:572) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.db.DatabaseImpl.initializeConnectables(DatabaseImpl.java:568) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.db.DatabaseImpl.online(DatabaseImpl.java:491) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.StardogKernel.online(StardogKernel.java:2716) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.protocols.http.server.AdminDatabaseService.online(AdminDatabaseService.java:262) ~[stardog-protocols-http-server-7.3.2.jar:?]
	at com.stardog.http.server.undertow.jaxrs.ExtractRoutes.lambda$handleIt$5(ExtractRoutes.java:192) ~[stardog-protocols-http-server-7.3.2.jar:?]
	at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [shiro-core-1.3.0.jar:1.3.0]
	at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [shiro-core-1.3.0.jar:1.3.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_251]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_251]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_251]
Caused by: com.complexible.stardog.StardogException
	at com.complexible.stardog.icv.ConstraintDbProviderImpl.getBuiltinConstraints(ConstraintDbProviderImpl.java:105) ~[stardog-icv-core-7.3.2.jar:?]
	at com.complexible.stardog.icv.ConstraintDbProviderImpl.openConstraintDb(ConstraintDbProviderImpl.java:71) ~[stardog-icv-core-7.3.2.jar:?]
	at com.complexible.stardog.icv.ConnectableICVFactory.create(ConnectableICVFactory.java:75) ~[stardog-icv-core-7.3.2.jar:?]
	at com.complexible.stardog.db.DatabaseImpl.createConnectables(DatabaseImpl.java:396) ~[stardog-7.3.2.jar:?]
	... 11 more
Caused by: java.lang.NullPointerException
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:877) ~[guava-27.0-jre.jar:?]
	at com.complexible.stardog.icv.ConstraintDbProviderImpl.getBuiltinConstraints(ConstraintDbProviderImpl.java:90) ~[stardog-icv-core-7.3.2.jar:?]
	at com.complexible.stardog.icv.ConstraintDbProviderImpl.openConstraintDb(ConstraintDbProviderImpl.java:71) ~[stardog-icv-core-7.3.2.jar:?]
	at com.complexible.stardog.icv.ConnectableICVFactory.create(ConnectableICVFactory.java:75) ~[stardog-icv-core-7.3.2.jar:?]
	at com.complexible.stardog.db.DatabaseImpl.createConnectables(DatabaseImpl.java:396) ~[stardog-7.3.2.jar:?]
	... 11 more
WARN  2020-07-09 14:42:51,802 [stardog-admin-4] com.complexible.stardog.protocols.http.server.StardogUndertowErrorHandler:accept(64): Unexpected exception was handled by the server
java.lang.NullPointerException: null
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:877) ~[guava-27.0-jre.jar:?]
	at com.complexible.stardog.icv.ConstraintDbProviderImpl.getBuiltinConstraints(ConstraintDbProviderImpl.java:90) ~[stardog-icv-core-7.3.2.jar:?]
	at com.complexible.stardog.icv.ConstraintDbProviderImpl.openConstraintDb(ConstraintDbProviderImpl.java:71) ~[stardog-icv-core-7.3.2.jar:?]
	at com.complexible.stardog.icv.ConnectableICVFactory.create(ConnectableICVFactory.java:75) ~[stardog-icv-core-7.3.2.jar:?]
	at com.complexible.stardog.db.DatabaseImpl.createConnectables(DatabaseImpl.java:396) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.db.DatabaseImpl.initializeConnectables(DatabaseImpl.java:572) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.db.DatabaseImpl.initializeConnectables(DatabaseImpl.java:568) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.db.DatabaseImpl.online(DatabaseImpl.java:491) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.StardogKernel.online(StardogKernel.java:2716) ~[stardog-7.3.2.jar:?]
	at com.complexible.stardog.protocols.http.server.AdminDatabaseService.online(AdminDatabaseService.java:262) ~[stardog-protocols-http-server-7.3.2.jar:?]
	at com.stardog.http.server.undertow.jaxrs.ExtractRoutes.lambda$handleIt$5(ExtractRoutes.java:192) ~[stardog-protocols-http-server-7.3.2.jar:?]
	at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [shiro-core-1.3.0.jar:1.3.0]
	at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [shiro-core-1.3.0.jar:1.3.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_251]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_251]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_251]

this is merged file with protege merge ontology feature

this the rdf file i want to use as archetypes

this issue is caused by i cloned git into .archetypes folder.

cd $STARDOG_HOME
git clone https://github.com/stardog-union/stardog-archetypes
mv stardog-archetypes .archetypes

this work

ps: rdf schema merge tool

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.