Using External Ontologies on AWS Neptune

0

Hi,

I am trying to use external ontologies in Neptune and they are not loading into the graph. For example when I use
skos: http://www.w3.org/2004/02/skos/core# it doesn't load these ontologies into Neptune. Is there a way to load these external ontologies into neptune or do I have to manually download them into an S3 bucket and load them into the Neptune instance from there.

Cheers,
Justin

Edited by: jtrugman on Feb 18, 2020 2:23 PM

已提問 4 年前檢視次數 538 次
2 個答案
0
已接受的答案

The short answer is that you want to use SPARQL Update LOAD to actually load the external ontology into Neptune, something like this:

LOAD <http://www.w3.org/1999/02/22-rdf-syntax-ns#
>```

There are, however, a couple of caveats/details to be considered:  
  
You must "punch a hole" so that Neptune can actually reach out of your VPC. Do this using a NAT Gateway. This document is helpful: https://aws.amazon.com/premiumsupport/knowledge-center/internet-access-lambda-function/  
  
Also note that Neptune uses HTTP content negotiation to fetch RDF content in the right format. See this (section "Media-types that SPARQL UDATE LOAD can import"): https://docs.aws.amazon.com/neptune/latest/userguide/sparql-media-type-support.html  
  
Some external ontologies may not be "content-negotiable", instead the external server uses some HTTP redirect code to inform the client where the actual RDF content is. Neptune does not handle these situations, so you may need to test (say, using curl) how the external server actually responds. I believe SKOS, for example, is set up this way.
AWS
Ora_L
已回答 4 年前
0

skos: <http://www.w3.org/2004/02/skos/core#> in itself does not load anything - it's just a namespace prefix, part of the syntax.
I think you want

LOAD <http://www.w3.org/2004/02/skos/core
>```

<https://www.w3.org/TR/sparql11-update/#load>
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南