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. 搜查相反謂詞:本