Greetings I'm new to Stanbol & Java. I'd appreciate any advice you can provide regarding the following:
Working from the instructions at https://stanbol.apache.org/docs/trunk/tutorial.html BTW, on https://stanbol.apache.org/docs/trunk/tutorial.html the link to all available components gives a 404 https://stanbol.apache.org/docs/trunk/components.html On OS X 10.7.5, I can checkout the project and initiate a build, but maven halts with a POM error. I resolved the pom errors with several path changes. 17:08:39 jonathan:~/Documents/HuntDesign/projects/stanbol $ svn diff . Index: launchers/bundlelists/pom.xml =================================================================== --- launchers/bundlelists/pom.xml (revision 1410712) +++ launchers/bundlelists/pom.xml (working copy) @@ -23,7 +23,7 @@ <groupId>org.apache.stanbol</groupId> <artifactId>stanbol-parent</artifactId> <version>2-SNAPSHOT</version> - <relativePath>../parent</relativePath> + <relativePath>../../parent</relativePath> </parent> <groupId>org.apache.stanbol</groupId> Index: commons/security/usermanagement/pom.xml =================================================================== --- commons/security/usermanagement/pom.xml (revision 1410712) +++ commons/security/usermanagement/pom.xml (working copy) @@ -23,7 +23,7 @@ <groupId>org.apache.stanbol</groupId> <artifactId>stanbol-parent</artifactId> <version>2-SNAPSHOT</version> - <relativePath>../../parent</relativePath> + <relativePath>../../../parent</relativePath> </parent> After changing the pom paths, the mvn install continued for some time until integration tests failed. "[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) on project org.apache.stanbol.integration-tests: There are test failures." Since I don't know how to resolve those failures I re-initiated the install without tests per "mvn -DskipTests clean install" and this proceeded to completion. However, at http://localhost:8080/ only /enhancer and /entityhub are available. (Previously I installed IKS 7.0, and additional endpoints were enabled in that instance (e.g. contenthub). Also the dbpediaLinking engine is not available. Creating an entity using curl -i -X POST -H "Content-Type:application/rdf+xml" -T david_banner.rdf "http://localhost:8080/entityhub/entity" worked but returned no response. The docs at http://localhost:8080/entityhub/entity indicate a 201 with the id of the entity will be returned. The rdf file is <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:foaf="http://xmlns.com/foaf/0.1/"> <!-- FOAF data goes here --> <foaf:Person about="http://huntdesign.co.nz/person/DavidBanner"> <foaf:name>David Banner</foaf:name> <foaf:title>Mr</foaf:title> <foaf:firstName>David</foaf:firstName> <foaf:surname>Banner</foaf:surname> <foaf:nick>hulk</foaf:nick> <foaf:homepage rdf:resource="http://www.davidbanner.com"/> <foaf:weblog rdf:resource="http://www.davidbanner.com/blog"/> <foaf:schoolHomepage rdf:resource="http://www.mit.edu"/> <foaf:workplaceHomepage rdf:resource="http://www.gamma-rays-r-us.com"/> <foaf:workInfoHomepage rdf:resource="http://www.gamma-rays-r-us.com/~banner/crazy-experiments.html"/> <!-- etc --> </foaf:Person> </rdf:RDF> Looking at the log, I wonder if this message is relevant: "ERROR: Bundle org.apache.stanbol.enhancer.engines.refactor [110]: Error starting slinginstall:org.apache.stanbol.enhancer.engines.refactor-0.10.0-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.stanbol.enhancer.engines.refactor [110]: Unable to resolve 110.0: missing requirement [110.0] package; (&(package=org.apache.stanbol.ontologymanager.servicesapi.collector)(version>=0.10.0)(!(version>=1.0.0)))) org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.stanbol.enhancer.engines.refactor [110]: Unable to resolve 110.0: missing requirement [110.0] package; (&(package=org.apache.stanbol.ontologymanager.servicesapi.collector)(version>=0.10.0)(!(version>=1.0.0))) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:680)" Because I got no response to the create request, I tried again and got "Unable to update an Entity http://huntdesign.co.nz/person/DavidBanner becuase it does already exists and updateing existing is deactivated. You might want to set the 'does already' parameter to TRUE in your Request" There are several spelling errors in that response: it does => it, exists and => exists and, updateing existing => updating existing. What's the best way to resolve these? Attempting to retrieve the entity caused a 500 error curl -X GET "http://localhost:8080/entityhub/entity?id=http://huntdesign.co.nz/person/DavidBanner" returned, in part "Error 500 Unknown prefix foaf (parsed from field foaf:schoolHomepage)!" curl -X DELETE "http://localhost:8080/entityhub/entity?id=http://huntdesign.co.nz/person/DavidBanner" returns no response. I stopped the stanbol instance and tried the '"full" build. java -Xmx1g -XX:MaxPermSize=256m -jar full/target/org.apache.stanbol.launchers.full-0.10.0-SNAPSHOT.jar instead, but got "ERROR: Bundle org.apache.stanbol.enhancer.engines.refactor [110]: Error starting slinginstall:org.apache.stanbol.enhancer.engines.refactor-0.10.0-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.stanbol.enhancer.engines.refactor [110]: Unable to resolve 110.0: missing requirement [110.0] package; (&(package=org.apache.stanbol.ontologymanager.servicesapi.collector)(version>=0.10.0)(!(version>=1.0.0)))) org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.stanbol.enhancer.engines.refactor [110]: Unable to resolve 110.0: missing requirement [110.0] package; (&(package=org.apache.stanbol.ontologymanager.servicesapi.collector)(version>=0.10.0)(!(version>=1.0.0)))" dbpediaLinking is enabled in this build, but when I try to submit content to the enhancer, I get "org.apache.stanbol.enhancer.servicesapi.ChainException: Enhancement Chain failed because of required Engine 'dbpediaLinking' failed with Message: Unable to process ContentItem '<urn:content-item-sha1-37c8a8244041cf6113d4ee04b3a04d0a014f6e10>' with Enhancement Engine 'dbpediaLinking' because the engine was unable to process the content (Engine class: org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine)(Reason: Unable to initialize the Cache with Yard dbpediaIndex! This is usually caused by Errors while reading the Cache Configuration from the Yard.)!" I'd appreciate help with the following: - how to enable dbpediaLinking? - should the integration tests be passing? - how to enable contenthub - how to enable additional engines (e.g. https://github.com/insideout10/wordlift-stanbol has Freebase and Schema.org, but I'm not clear on how to include that code in the Stanbol src. Apologies in advance if I've missed something obvious. Regards Jonathan Jonathan Hunt http://huntdesign.co.nz +64 21 529 250 PO Box 1062, Christchurch 8140, New Zealand Jonathan Hunt http://huntdesign.co.nz +64 21 529 250 PO Box 1062, Christchurch 8140, New Zealand