### Turtle Document Template Start ### ## ## Purpose: construction of digital sentences using a notation closely aligned to natural language sentence structure ## Remember: a natural language sentence is comprised of the following parts: Subject, Predicate, and Object (SPO) or Subject, Verb, Object (SVO). Illustrated in directed-graph form as: ## Subject-->Predicate-->Object ## You can watch the video about sentence structure before proceeding. Just go to: http://youtu.be/sW_Mn0zeK6U ## ## Notation Rules: ## ## The occurence of a"#" symbol at the start of any line implies the line is a comment i.e., it won't be processed by a Turtle processor (software that undertands ## this notation) ## ## Understanding Structure of a Hyperlink ## ## ## Sample Hyperlink: http://dbpedia.org/resource/Linked_Data ## Structure Breakdown: ## {http:} -- data protocol scheme ## {dbpedia.org} -- hostname ## {resource} -- path ## {Linked_Data} -- query ## {#} -- optional hyperlink terminator or fragment identifier which concludes the part of a hyperlink used by browsers. Thus, anything after the fragement identifier is for local application use. ## ## Alternative view of URI structure breakdown ## ## {data-access-protocol-scheme}://{network-machine-name}/{resource-folder-or-directory}/{local-resource-name-lookup-or-query-pattern}#{local-identifier} ## ## Turtle Processor Directive Section ## ## These are Turtle processor directives for prefixes that serve as shorthand for Hyperlink based qualifiers (namespaces) ## @prefix directives are used -- by a Linked Data browser that understands Turtle -- to produce hyperlinks from this content when published to the Web ## Don't touch the section that follows unless you are adding a new directive. @prefix yago: . @prefix dbpedia: . @prefix xsd: . @prefix rdfs: . @prefix rdf: . @prefix owl: . @prefix dcterms: . @prefix wdrs: . @prefix foaf: . @prefix siocs: . @prefix gr: . @prefix l: . @prefix d: . @prefix: <#> . # Denotation Symbols Map resulting from the directives above: # <> denotes the name of this Turtle document. # <#> denotes the name of this file with plus a "#" # denotes a file named "xyz#" in the current directory # # Prefix Directives # # @prefix d: is an alias directive, very similar to the effect of Unix bash shell command: alias d='ls Definitions.ttl#' # # Using this Template # # In this Turtle document template {} represents a placeholder i.e., when entering a value you have to overwrite the {} # You only need to provide values where you see {} en route to making a document bearing Turtle content that describes # stuff you like ## Stuff I Like, Officially ## <> a foaf:Document . <> foaf:maker :this . <> dcterms:created "{Date-In-Year-Month-Day-Format}"^^xsd:date . <> dcterms:hasFormat "text/turtle" . # Fruits You Like # Examples: # Assuming yago:Apple107739125, denotes (names) an apple from the Yago dataset which is prefixed as yago: as per directives section at the top. Which expands to the # hyperlink based name: . # Thus, you can assert the # fact that you like Apples via the statement short form statement: # :this l:likes yago:Apple107739125 . # OR # long form statement: # :this l:likes . :this l:likes yago:{last-part-of-HyperLink-based-Denotation-or-Name-following-last-slash-of-Fruits-You-Like} . # Food You Like # Examples from DBpedia # Thus, you can assert the # fact that you like Apples via the statement short form statement: # :this l:likes dbpedia:Suya . # OR # long form statement: # :this l:likes . :this l:likes dbpedia:{last-part-of-HyperLink-based-Denotation-or-Name-following-last-slash-of-Food-You-Like} . # Cars You Like # Examples from DBpedia # :this l:likes dbpedia:Lexus . # :this l:likes dbpedia:Lexus_RX . :this l:likes dbpedia:{last-part-of-HyperLink-based-Denotation-or-Name-following-last-slash-of-a-Car-You-Like} . # People You Like # Examples from DBpedia # :this l:likes dbpedia:Barack_Obama . # :this l:likes dbpedia:Muhammad_Ali . # :this l:likes dbpedia:Nelson_Mandela . :this l:likes dbpedia:{last-part-of-HyperLink-based-Denotation-or-Name-following-last-slash-of-a-Someone-You-Like} . # Sports Teams You Like # Examples from DBpedia # :this l:likes dbpedia:Bendel_Insurance_F.C. . # :this l:likes dbpedia:Birmingham_City_F.C. . :this l:likes dbpedia:{last-part-of-HyperLink-based-Denotation-or-Name-following-last-slash-of-Sports-You-Like} . # TV Programmes You Like # Examples from DBpedia # :this l:likes dbpedia:EastEnders . # :this l:likes dbpedia:Star_Trek:_Enterprise . :this l:likes dbpedia:{last-part-of-HyperLink-based-Denotation-or-Name-following-last-slash-of-a-Programme-You-Like} . ### Turtle Document End ###