You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Matt Snyder (JIRA)" <ji...@apache.org> on 2017/01/26 08:34:24 UTC

[jira] [Created] (ANY23-303) JsonLdError: loading remote context failed: http://schema.org/

Matt Snyder created ANY23-303:
---------------------------------

             Summary: JsonLdError: loading remote context failed: http://schema.org/
                 Key: ANY23-303
                 URL: https://issues.apache.org/jira/browse/ANY23-303
             Project: Apache Any23
          Issue Type: Bug
          Components: extractors
    Affects Versions: 2.1
            Reporter: Matt Snyder


For an html page with embedded json-ld, I'm getting JsonLdError: loading remote context failed: http://schema.org/

Could it be a manifestation of issue #180 on jsonld-java ?  That issue is marked closed.

Full traceback:
{code:java}
org.apache.any23.extractor.ExtractionException: Error while parsing RDF document.
	at org.apache.any23.extractor.rdf.BaseRDFExtractor.run(BaseRDFExtractor.java:109)
	at org.apache.any23.extractor.html.EmbeddedJSONLDExtractor.extractJSONLDScript(EmbeddedJSONLDExtractor.java:149)
	at org.apache.any23.extractor.html.EmbeddedJSONLDExtractor.run(EmbeddedJSONLDExtractor.java:82)
	at org.apache.any23.extractor.html.EmbeddedJSONLDExtractor.run(EmbeddedJSONLDExtractor.java:53)
	at org.apache.any23.extractor.SingleDocumentExtraction.runExtractor(SingleDocumentExtraction.java:475)
	at org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:256)
	at org.apache.any23.Any23.extract(Any23.java:300)
	at org.apache.any23.Any23.extract(Any23.java:452)
	at org.apache.any23.cli.Rover.performExtraction(Rover.java:178)
	at org.apache.any23.cli.Rover.run(Rover.java:211)
	at org.apache.any23.cli.ToolRunner.execute(ToolRunner.java:136)
	at org.apache.any23.cli.ToolRunner.main(ToolRunner.java:69)
Caused by: org.eclipse.rdf4j.rio.RDFParseException: Could not parse JSONLD
	at org.eclipse.rdf4j.rio.jsonld.JSONLDParser.parse(JSONLDParser.java:71)
	at org.apache.any23.extractor.rdf.BaseRDFExtractor.run(BaseRDFExtractor.java:105)
	... 11 more
Caused by: com.github.jsonldjava.core.JsonLdError: loading remote context failed: http://schema.org/
	at com.github.jsonldjava.core.DocumentLoader.loadDocument(DocumentLoader.java:31)
	at com.github.jsonldjava.core.Context.parse(Context.java:195)
	at com.github.jsonldjava.core.Context.parse(Context.java:142)
	at com.github.jsonldjava.core.Context.parse(Context.java:286)
	at com.github.jsonldjava.core.JsonLdApi.expand(JsonLdApi.java:543)
	at com.github.jsonldjava.core.JsonLdApi.expand(JsonLdApi.java:997)
	at com.github.jsonldjava.core.JsonLdProcessor.expand(JsonLdProcessor.java:146)
	at com.github.jsonldjava.core.JsonLdProcessor.toRDF(JsonLdProcessor.java:482)
	at org.eclipse.rdf4j.rio.jsonld.JSONLDParser.parse(JSONLDParser.java:68)
	... 12 more
{code}

html snippet:
{code:html}
<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": "test product"
}
</script>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)