1
A
回答
1
我似乎找到了我需要梅索德上this post!
我的解决办法:
//Path to RDF/XML file
pathToRDF = "c:\dotNetRdfExample\exampleRDF.xml"
// A IGraph Parser, implementing the IRdfReader interface (So it can work with RDF/XML formats)
RdfXmlParser rxpparser = new RdfXmlParser();
// Create a graph for the rdf data
Graph g = new Graph();
// Makes sure that the XML file is UTF8
StreamReader sr = new StreamReader(pathToRDF, true);
// Fill the empty IGraph, using the rdfXmlParser
rxpparser.Load(g, sr);
// Retrieve all triples with the specified predicate and object
IEnumerable<Triple> specificTriples = g.GetTriplesWithPredicateObject(g.CreateUriNode(UriFactory.Create("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")),
g.CreateUriNode(UriFactory.Create("http://www.projectenportfolio.nl/wiki/index.php/Speciaal:URIResolver/Category-3AHandelingsperspectief")));
相关问题
- 1. 谓词查找表?
- 2. 查找匹配的谓词。谓词的谓词?
- 3. 查找Prolog的谓词
- 4. VB.NET谓词数组查找
- 5. 如何从HQL查询创建谓词?
- 6. 如何获得谓词的主体?
- 7. 检查谓词
- 8. 使用谓词来查找所有行?
- 9. 谓词使用查找元组
- 10. 序言查找全部谓词
- 11. LogiQL:查找最大值谓词
- 12. 序言查找并删除谓词
- 13. NSFetchResultsController谓词问题
- 14. Prolog的谓词主叫
- 15. 带谓词问题的大量查询
- 16. 如何检查项目匹配谓词
- 17. 如何设置此查询的谓词
- 18. 如何在Xcode7的UITests下查找带谓词的按钮?
- 19. 的Prolog - 一个AUX谓词在主谓词
- 20. 从iOS客户端谓词问题查询Azure可同步?
- 21. 谓词链接问题
- 22. NSPredicate和filteredArrayUsingPredicate:谓词问题
- 23. 谓词编辑器问题
- 24. 问题的谓词在C#
- 25. Prolog的谓词问题
- 26. 谓词之间的问题
- 27. 如何测试QueryDsl谓词
- 28. 如何获得谓词值
- 29. 如何结合c#谓词
- 30. 搜查相反谓词:本