code_junkie

What is a good RDF library for .net?

Nov 11th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. RdfDocument rdfDoc = new RdfDocument();
  2. Car car = new Car("myCarUri", rdfDoc);
  3. Vehicle vehicle = car; // implicit casting
  4. CompanyAsset companyAsset = car; // implicit casting
  5. vehicle.WheelCount = 4;
  6. companyAsset.MonetaryValue = 15000;
  7. Console.WriteLine(rdfDoc.ToN3());
  8.  
  9. myCarUri typeOf Car
  10. myCarUri WheelCount 4
  11. myCarUri MonetaryValue 15000
Add Comment
Please, Sign In to add comment