Created
May 7, 2010 15:16
-
-
Save kendall/393544 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Graph aGraph = new GraphImpl(); | |
URI aBook = aGraph.getValueFactory().createURI("urn:x-domain:oreilly.com:product:9780596514129.IP"); | |
aGraph.add(aBook, | |
aGraph.getValueFactory().createURI("http://purl.org/dc/terms/publisher"), | |
aGraph.getValueFactory().createLiteral("O'Reilly Media / Pogue Press")); | |
aGraph.add(aBook, | |
aGraph.getValueFactory().createURI("http://purl.org/dc/terms/title"), | |
aGraph.getValueFactory().createLiteral("Switching to the Mac: The Missing Manual, Leopard Edition")); | |
// ... setting the additional properties here ... | |
aGraph.add(aBook, | |
RDF.TYPE, | |
aGraph.getValueFactory().createURI("http://vocab.org/frbr/core#Expression")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment