简体   繁体   English

Amazon Neptune 在插入数据时覆盖空白节点值

[英]Amazon Neptune overwrites blank node values when inserting data

When inserting a triple with a blank node into an Amazon Neptune instance:将带有空白节点的三元组插入 Amazon Neptune 实例时:

INSERT DATA { <http://example.com/s> <http://example.com/p> _:something }

…the blank node's value gets replaced with b<SOME NUMBER> . …空白节点的值被替换为b<SOME NUMBER> Running a query like this:运行这样的查询:

SELECT ?o WHERE { <http://example.com/s> <http://example.com/p> ?o }

…will return something like this: ...将返回如下内容:

{
    "results": {
        "bindings": [
            {
                "o": {
                    "type": "bnode",
                    "value": "b24508943"
                }
            }
        ]
    }
}

Is there a way to retain original blank node names when loading data into Neptune?有没有办法在将数据加载到 Neptune 时保留原始的空白节点名称?

The idea of blank nodes is that they are not addressable (from "outside").空白节点的想法是它们不可寻址(从“外部”)。 If you need something you can address (ie, "point to") later, you should give it a URI.如果您需要稍后可以寻址(即“指向”)的内容,您应该给它一个 URI。

If you have a blank node that serves as the subject of some statements, you might be able to find those statements if some other statement uses that blank node as well (eg, as its object).如果您有一个空白节点作为某些语句的主语,如果其他语句也使用该空白节点(例如,作为其宾语),您可能能够找到这些语句。 That is, you could use a query to find them.也就是说,您可以使用查询来查找它们。 Otherwise, use a URI.否则,请使用 URI。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM