Accessing a Graph's Metadata
Each graph has a metadata graph associated with it. To view a metadata graph, use the get subcommand with the -m option:
anzo get -m URI
The -m option indicates that you want to see the metadata graph for the specified URI. For example, the following command retrieves the metadata graph for one of the movie graphs in the Movie data set:
anzo get -m http://cambridgesemantics.com/Movie/30045070
In addition to showing the data for the <http://cambridgesemantics.com/Movie/30045070> graph, the results include the metadata for the graph:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix anzo: <http://openanzo.org/ontologies/2008/07/Anzo#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix datasource: <http://openanzo.org/datasource/> . <http://cambridgesemantics.com/Movie/30045070> { <http://cambridgesemantics.com/Movie/30045070> <http://cambridgesemantics.com/ontologies/2009/08/Film#hasMovieCredits> <http://cambridgesemantics.com/movieCredits/30045070> , <http://cambridgesemantics.com/movieCredits/2b165e36-d624-4459-8d90-9c34f366b173> , <http://cambridgesemantics.com/movieCredits/cd79872e-dff2-4914-b1be-894c14d6fee2> , <http://cambridgesemantics.com/movieCredits/da6c341e-51df-4a49-91a7-092c603d3fed> , <http://cambridgesemantics.com/movieCredits/f23fc845-4d62-477d-8847-81c02079534c> ; <http://cambridgesemantics.com/ontologies/2009/08/Film#movieAbstract> "Catch Me If You Can is a 1989 American motion picture ..." ; <http://cambridgesemantics.com/ontologies/2009/08/Film#movieId> "30045070" ; <http://cambridgesemantics.com/ontologies/2009/08/Film#title> "Catch Me If You Can (1989 film)" ; a <http://cambridgesemantics.com/ontologies/2009/08/Film#Movie> . } <http://openanzo.org/metadataGraphs(http%3A%2F%2Fcambridgesemantics.com%2FMovie%2F30045070)> { <http://cambridgesemantics.com/Movie/30045070> anzo:persisted "true"^^xsd:boolean ; a anzo:NamedGraph ; anzo:createdBy <http://openanzo.org/system/internal/sysadmin> ; anzo:lastModifiedByUser <http://openanzo.org/system/internal/sysadmin> ; anzo:created "2017-06-14T18:46:56.213Z"^^xsd:dateTime ; anzo:datasource datasource:systemDatasource ; anzo:hasMetadataGraph <http://openanzo.org/metadataGraphs(http%3A%2F%2Fcambridgesemantics.com%2FMovie%2F30045070)> ; anzo:inheritsFrom <http://cambridgesemantics.com/dataSets/44A1400588F64C2488EB836CCE023647/dataset> ; anzo:modified "2017-06-14T18:46:56.213Z"^^xsd:dateTime ; anzo:revisioned "false"^^xsd:boolean ; anzo:revision "0"^^xsd:long ; anzo:uuid <http://openanzo.org/namedGraphUUID/nonrevisioned/7c18cfc2-0c5c-403e-ab39-c2f257978fe9> . <http://openanzo.org/metadataGraphs(http%3A%2F%2Fcambridgesemantics.com%2FMovie%2F30045070)> anzo:inheritsFrom <http://cambridgesemantics.com/dataSets/44A1400588F64C2488EB836CCE023647/dataset> . }