Скачать книгу

to say that Product1 is a Product in graph http://www.WorkingOntologist.org/Examples/Chapter3/Manufacture, we would simply write

Image

      This is a very long line indeed (even longer than it was in N-Triples), so it doesn’t show up well in a book, but it is simple to write an parse—no shortcuts, no prefixes, just subject, predicate, object, graph, period.

       TriG

      TriG is an extension of the Turtle format from Section 3.8. It includes all of the abbreviations for namespaces and elisions with semicolons and commas as Turtle does. The main difference is that it is possible to specify a URI for a graph for all triples in the file. This is done simply by putting all the triples in a graph between braces ({ and }), and then prefix the name of the graph.

      If we take the example from Section 3.8 about manufacturing products, and put them into a graph with name <http://www.WorkingOntologist.org/Examples/Chapter3/Manufacture>, this can be expressed in TriG as follows:

Image

      In this way, we can express several graphs in a single file.

      RDF is a simple standard; its job is to model distributed data on the Web. It accomplishes this job, and nothing more. If you want to model data in a distributed way, you can either use RDF or you will re-invent it; there isn’t very much to it. The basic idea of RDF is that, in a distributed setting, you need a global identifier for anything you refer to. If you want to connect that to some other thing, you will need a name for that. And if you want to connect them, you’ll need a name for the connection. All of these names have to be global.

      The hypertext Web has already given us the global identifiers; we’ll see the details of how the Web infrastructure processes these identifiers, but that isn’t part of the Semantic Web, that’s part of the Web we all use every day. RDF doesn’t solve the distributed identity problem; the Web solved that, and RDF re-uses that solution.

      Given this, the very minimum required for distributed represenation of data on the Web is a way to connect one Web identifier (i.e., a URI) to another, with a link that is also named with a URI. This is the basis of the RDF triple. Everything else is just plumbing. If you are distributing data, you’ll want a way to store it (those are the serializations). You’ll want a way to convert data from non-distributed forms (like tables) into distributed form. RDF simply provides the infrastructure to deal with the simplest way of representing distributed information.

      As a data model, RDF provides a clear specification of what has to happen to merge information from multiple sources. It does not provide algorithms or technology to implement those processes. These technologies are the topic of subsequent chapters.

       Fundamental concepts

      The following fundamental concepts were introduced in this chapter.

      • RDF (Resource Description Framework)—This distributes data on the Web.

      • Triple—The fundamental data structure of RDF. A triple is made up of a subject, predicate, and object.

      • Graph—A nodes-and-links structural view of RDF data.

      • Merging—The process of treating two graphs as if they were one.

      • URI (Uniform Resource Indicator)—A generalization of the URL (Uniform Resource Locator), which is the global name on the Web.

      • namespace—A set of names that belongs to a single authority. Namespaces allow different agents to use the same word in different ways.

      • CURIE—An abbreviated version of a URI, it is made up of a namespace identifier and a name, separated by a colon.

      • rdf:type—The relationship between an instance and its type.

      • rdf:Property—The type of any property in RDF.

      • Reification—The practice of making a statement about another statement. It is done in RDF using

      • rdf:subject, rdf:predicate, and Nonerdf:object.

      • N-Triples, Turtle, RDF/XML—The serialization syntaxes for RDF.

      • Blank nodes—RDF nodes that have no URI and thus cannot be referenced globally. They are used to stand in for anonymous entities.

      1. We are primarily discussing files here, but a URI can refer to other resources. The Wikipedia article on URIs includes more than 50 different resource types that can be referenced by URIs—see http://en.wikipedia.org/wiki/URI_scheme.

      Конец ознакомительного фрагмента.

      Текст предоставлен ООО «ЛитРес».

      Прочитайте эту книгу целиком, купив полную легальную версию на ЛитРес.

      Безопасно оплатить книгу можно банковской картой Visa, MasterCard, Maestro, со счета мобильного телефона, с платежного терминала, в салоне МТС или Связной, через PayPal, WebMoney, Яндекс.Деньги, QIWI Кошелек, бонусными картами или другим удобным Вам способом.

/9j/4Sk1RXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAA agEoAAMAAAABAAIAAAExAAIAAAAeAAAAcgEyAAIAAAAUAAAAkIdpAAQAAAABAAAApAAAANAALcbA AAAnEAAtxsAAACcQQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykAMjAyMDowNjowOSAxMTow MTozOAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAIyKADAAQAAAABAAAK1QAAAAAAAAAGAQMAAwAA AAEABgAAARoABQAAAAEAAAEeARsABQAAAAEAAAEmASgAAwAAAAEAAgAAAgEABAAAAAEAAAEuAgIA BAAAAAEAACf/AAAAAAAAAEgAAAABAAAASAAAAAH/2P/tAAxBZG9iZV9DTQAB/+4ADkFkb2JlAGSA AAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwM DAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwM DAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAoACCAwEiAAIRAQMRAf/dAAQACf/EAT8AAAEF AQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAAB BAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHx Y3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm 9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS 0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcL

Скачать книгу