N-Triples

N-Triples
Filename extension
.nt
Internet media type
application/n-triples
Developed byW3C
Latest release
RDF 1.1 N-Triples (REC)
February 25, 2014; 10 years ago (2014-02-25)
Type of formatsemantic web
Container forRDF data
Extended toTurtle
Websitewww.w3.org/TR/n-triples/

N-Triples is a format for storing and transmitting data. It is a line-based, plain text serialisation format for RDF (Resource Description Framework) graphs, and a subset of the Turtle (Terse RDF Triple Language) format.[1][2][3] N-Triples should not be confused with Notation3 which is a superset of Turtle. N-Triples was primarily developed by Dave Beckett at the University of Bristol and Art Barstow at the World Wide Web Consortium (W3C).[4]

N-Triples was designed to be a simpler format than Notation3 and Turtle, and therefore easier for software to parse and generate. However, because it lacks some of the shortcuts provided by other RDF serialisations (such as CURIEs and nested resources, which are provided by both RDF/XML and Turtle) it can be onerous to type out large amounts of data by hand, and difficult to read.

Usage

There is very little variation in how an RDF graph can be represented in N-Triples. This makes it a very convenient format to provide "model answers" for RDF test suites.[3]

Implementations

As N-Triples is a subset of Turtle and Notation3, by definition all tools which support input in either of those formats will support N-Triples. In addition, some tools like Cwm have specific support for N-Triples.

File format

Each line of the file has either the form of a comment or of a statement: A statement consists of four parts, separated by whitespace:

  • the subject,
  • the predicate,
  • the object,
  • a full stop which means the termination of a statement

Subjects may take the form of a URI or a blank node; predicates must be a URI; objects may be a URI, blank node or a literal. URIs are delimited with less-than and greater-than signs used as angle brackets. Blank nodes are represented by an alphanumeric string, prefixed with an underscore and colon (_:). Literals are represented as printable ASCII strings (with backslash escapes),[5] delimited with double-quote characters, and optionally suffixed with a language or datatype indicator. Language indicators are an at sign followed by an RFC 3066 language tag; datatype indicators are a double-caret followed by a URI. Comments consist of a line beginning with a hash sign.

Example

The N-Triples statements below are equivalent to this RDF/XML:

  • RDF/XML
 <rdf:RDF xmlns="http://xmlns.com/foaf/0.1/"
          xmlns:dc="http://purl.org/dc/terms/"
          xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
   <Document rdf:about="http://www.w3.org/2001/sw/RDFCore/ntriples/">
     <dc:title xml:lang="en-US">N-Triples</dc:title>
     <maker>
       <Person rdf:nodeID="art">
         <name>Art Barstow</name>
       </Person>
     </maker>
     <maker>
       <Person rdf:nodeID="dave">
         <name>Dave Beckett</name>
       </Person>
     </maker>
   </Document>
 </rdf:RDF>
  • N-Triples
 <http://www.w3.org/2001/sw/RDFCore/ntriples/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
    <http://xmlns.com/foaf/0.1/Document> .
 <http://www.w3.org/2001/sw/RDFCore/ntriples/> <http://purl.org/dc/terms/title> "N-Triples"@en-US .
 <http://www.w3.org/2001/sw/RDFCore/ntriples/> <http://xmlns.com/foaf/0.1/maker> _:art .
 <http://www.w3.org/2001/sw/RDFCore/ntriples/> <http://xmlns.com/foaf/0.1/maker> _:dave .
 _:art <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
 _:art <http://xmlns.com/foaf/0.1/name> "Art Barstow".
 _:dave <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
 _:dave <http://xmlns.com/foaf/0.1/name> "Dave Beckett".

(The symbol ↵ is used to indicate a place where a line has been wrapped for legibility. N-Triples do not allow lines to be wrapped arbitrarily: the line endings indicate the end of a statement.)

N-Quads

N-Quads
Filename extension
.nq
Internet media type
application/n-quads
Developed byW3C
Latest release
RDF 1.1 N-Quads (REC)
February 25, 2014; 10 years ago (2014-02-25)
Type of formatsemantic web
Container forRDF data
Websitewww.w3.org/TR/n-quads/

The related N-Quads superset extends N-Triples with an optional context value at the fourth position.[6][7][8]

 <http://one.example/subject1> <http://one.example/predicate1> <http://one.example/object1> <http://example.org/graph3> . # comments here
 # or on a line by themselves
 _:subject1 <http://an.example/predicate1> "object1" <http://example.org/graph1> .
 _:subject2 <http://an.example/predicate2> "object2" <http://example.org/graph5> .

See also

References

  1. ^ "RDF 1.1 N-Triples". W3C Recommendation 25 February 2014. www.w3.org. Retrieved 2014-02-25.
  2. ^ "N-Triples". W3C RDF Core WG Internal Working Draft. www.w3.org. Retrieved 2008-02-17.
  3. ^ a b "RDF Test Cases - N-Triples". W3C Recommendation 10 Feb 2004. www.w3.org. Retrieved 2008-02-17.
  4. ^ "XML and Semantic Web W3C Standards Timeline" (PDF).
  5. ^ Jan Grant, Dave Beckett (2004-02-10). "RDF Test Cases / N-Triples / Strings". W3C Recommendation. W3C. Retrieved 2012-04-25. N-Triples strings are sequences of US-ASCII character productions encoding [UNICODE] character strings. The characters outside the US-ASCII range and some other specific characters are made available by \-escape sequences as follows ...
  6. ^ "RDF 1.1 N-Quads". www.w3.org.
  7. ^ "RDF 1.1 N-Quads". www.w3.org.
  8. ^ "Archived copy". Archived from the original on 2013-04-26. Retrieved 2013-04-26.{{cite web}}: CS1 maint: archived copy as title (link)

Read other articles:

Disambiguazione – Se stai cercando altri significati, vedi Time (disambigua). TIMELogoStato Stati Uniti Linguainglese Periodicitàquattordicinale Generequattordicinale di attualità politica, economica e finanziaria Formatorivista FondatoreBriton Hadden e Henry Robinson Luce Fondazione3 marzo 1923 SedeManhattan EditoreTime USA, LLC.[1] Diffusione cartacea3.376.226 per settimana negli USA[2] (2011) DirettoreSam Jacobs ISSN0040-781X (WC · ACNP) e 2169-1665 (WC ...

 

 

Liga Eropa UEFA 2012–13Stadion Amsterdam Arena yang menyelenggarakan pertandingan final.Informasi turnamenJadwalpenyelenggaraan20 September 2012 – 15 Mei 2013 (babak utama)5 Juli – 30 Agustus 2012 (babak kualifikasi)Jumlahtim peserta48+8 (babak utama)161+32 (total) (dari 53 asosiasi)Hasil turnamenJuara Chelsea (gelar ke-1)Tempat kedua BenficaStatistik turnamenJumlahpertandingan205Jumlah gol521 (2,54 per pertandingan)Jumlahpenonton4.174.756 (20.365 per pertandingan)Penceta...

 

 

Not to be confused with List of Scream (film series) characters. The following is a list of characters from the slasher television series Scream, which is based on the film series of the same name. Overview Main Actor Character Scream 1 2 Resurrection Willa Fitzgerald Emma Duval Main Bex Taylor-Klaus Audrey Jensen Main John Karna Noah Foster Main Amadeus Serafini Kieran Wilcox Main Carlson Young Brooke Maddox Main Connor Weil Will Belmont Main Jason Wiles Clark Hudson Main Tracy Middendorf M...

Halaman ini berisi artikel tentang perusahaan. Untuk tokohnya, lihat J. P. Morgan. JPMorgan Chase & Co.Kantor pusat sementara JPMorgan Chase & Co. di Midtown ManhattanJenisPublikKode emitenNYSE: JPMKomponen DJIAKomponen S&P 100Komponen S&P 500ISINUS46625H1005IndustriJasa keuanganPendahuluChemical BankJ.P. Morgan & Co.The Manhattan CompanyChase National BankDidirikan1 Desember 2000; 23 tahun lalu (2000-12-01)PendiriWalter V. ShipleyBalthazar P. Melick(Chemical Bank)Joh...

 

 

Nature Materials  Singkatan (ISO)Nature Mater.Disiplin ilmuIlmu materialBahasaInggrisDetail publikasiPenerbitNature Publishing Group (Britania Raya)Sejarah penerbitan2002–sekarangFrekuensiBulananFaktor dampak36.503 (2014)PengindeksanISSN1476-1122 (print)1476-4660 (web)LCCN2003260101CODENNMAACROCLC51211555 Pranala Journal homepage Nature Materials adalah jurnal ilmiah yang ditelaah sejawat yang diterbitkan oleh Nature Publishing Group. Jurnal ini diluncurkan pada bulan Se...

 

 

هذه المقالة تتحدث عن مدينة سان ريمو، إذا كنت تبحث عن مؤتمر سان ريمو إضغط هنا. سانريمو    علم شعار   الإحداثيات 43°49′03″N 7°46′30″E / 43.8175°N 7.775°E / 43.8175; 7.775  [1] تقسيم إداري  البلد إيطاليا[2][3]  التقسيم الأعلى مقاطعة إمبرية  خصائص جغرافية &...

Airport in near Battle Mountain, NevadaBattle Mountain AirportIATA: BAMICAO: KBAMFAA LID: BAMSummaryAirport typePublicOperatorLander CountyServesBattle Mountain, NevadaLocationLander County, near Battle Mountain, NevadaElevation AMSL4,532 ft / 1,381 mCoordinates40°35′59″N 116°52′34″W / 40.59972°N 116.87611°W / 40.59972; -116.87611Runways Direction Length Surface ft m 12/30 7,300 2,225 Asphalt 3/21 7,299 2,225 Asphalt Helipads Number Length Su...

 

 

Lapide commemorativa della Brigata Muccini a Vecchietto (Aulla) La Brigata Garibaldi Ugo Muccini fu una brigata partigiana organizzata dal Partito Comunista Italiano, che iniziò ad operare nell'agosto 1944 sui contrafforti delle Alpi Apuane nella provincia della Spezia ad est del Magra e a sud dell'Aulella. L'area in quel momento costituiva una retrovia del fronte, attestato sulla linea Gotica. Il reparto prendeva il nome da un giovane comunista di Arcola morto nella guerra di Spagna. Indice...

 

 

Logical paradox from vague predicates The sorites paradox: If a heap is reduced by a single grain at a time, the question is: at what exact point does it cease to be considered a heap? The sorites paradox (/soʊˈraɪtiːz/;[1] sometimes known as the paradox of the heap) is a paradox that results from vague predicates.[2] A typical formulation involves a heap of sand, from which grains are removed individually. With the assumption that removing a single grain does not cause a ...

Railway transport in Japan JapanOperationMajor operatorsJapan Railways GroupStatisticsRidership7.589 billion (2014)Passenger km260 billion (2014)System lengthTotal30,625 kmElectrified21,600 kmMapRailway Map of Japan Part of a series onRail transport History Company types Infrastructure Management Rail yard Railway station list Railway track Maintenance Track gauge Variable gauge Gauge conversion Dual gauge Service and rolling stock Operating Locomotives Steam locomotives Trains Railroad cars ...

 

 

本條目存在以下問題,請協助改善本條目或在討論頁針對議題發表看法。 此條目的引用需要清理,使其符合格式。参考文献应符合正确的引用、脚注及外部链接格式。 此條目可参照英語維基百科相應條目来扩充,此條目在對應語言版為高品質條目。 (2023年8月17日)若您熟悉来源语言和主题,请协助参考外语维基百科扩充条目。请勿直接提交机械翻译,也不要翻译不可靠、低�...

 

 

2019 studio album by the New PornographersIn the Morse Code of Brake LightsStudio album by the New PornographersReleasedSeptember 27, 2019 (2019-09-27)GenrePower pop, indie pop, chamber popLength41:02LabelConcordProducerA. C. NewmanThe New Pornographers chronology Whiteout Conditions(2017) In the Morse Code of Brake Lights(2019) Continue as a Guest(2023) Singles from In the Morse Code of Brake Lights Falling Down the Stairs of Your SmileReleased: August 2, 2019 In the M...

2001 video game 2001 video gameConker's Bad Fur DayDeveloper(s)RarePublisher(s)NA: RareEU: THQDirector(s)Chris SeavorDesigner(s)Chris SeavorArtist(s)Don MurphyWriter(s)Robin BeanlandChris SeavorComposer(s)Robin BeanlandSeriesConkerPlatform(s)Nintendo 64ReleaseNA: 5 March 2001EU: 13 April 2001AU: 25 May 2001Genre(s)Platform, action-adventureMode(s)Single-player, multiplayer Conker's Bad Fur Day is a 2001 platform game developed and published by Rare for the Nintendo 64. The game follows Conker...

 

 

Betty BuckleyLahirBetty Lynn BuckleyPekerjaanAktris Penyanyi Betty Lynn Buckley (lahir 3 Juli 1947) adalah aktris teater, film, televisi dan penyanyi Amerika Serikat. Ia memenangkan Best Featured Actress in a Musical pada tahun 1983. Pranala luar Betty Buckley's Official web site (Inggris) Betty Buckley di AllMovie Betty Buckley di Internet Broadway Database Betty Buckley di IMDb (dalam bahasa Inggris) Betty Buckley di TV.com TonyAwards.com Interview with Betty Buckley Diarsipkan 2007-0...

 

 

Reference work for US Navy vessels Dictionary of American Naval Fighting Ships AuthorJames Longuemare MooneyPublisherNavy Dept., Office of the Chief of Naval Operations, Naval History DivisionPublication date1959–1991OCLC2794587 The Dictionary of American Naval Fighting Ships (DANFS) is the official reference work for the basic facts about ships used by the United States Navy. When the writing project was developed the parameters for this series were designed to cover only commissioned US N...

This is a partial list of alumni, faculty and staff associated with the Pontifical University of St. Thomas Aquinas (Angelicum) in Rome, Italy. Medieval origin: 1222 The Santa Sabina Studium Conventuale Jacek Odrowąż, 1220, among the first to enter the convent and studium at Santa Sabina before its official donation to the Dominican Order by Pope Honorius III on 5 June, in 1222. [1] Czesław Odrowąż (c. 1184 – c. 1242), 1220, among the first to enter the convent and studiu...

 

 

كوجي مييوشي (باليابانية: 三好 康児)‏    معلومات شخصية الاسم الكامل كوجي مييوشي الميلاد 26 مارس 1997 (العمر 27 سنة)كاواساكي، كاناغاوا، اليابان الطول 1.68 م (5 قدم 6 بوصة) مركز اللعب لاعب وسط الجنسية اليابان  معلومات النادي النادي الحالي رويال أنتويرب الرقم 19 مسيرة الشب...

 

 

This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Fiat 525 – news · newspapers · books · scholar · JSTOR (July 2020) Motor vehicle Fiat 525Fiat 525 SS 1928OverviewManufacturerFiatProduction1928–1931Body and chassisBody style4-door sedan2/4-door cabriolet2-door spiderLayoutFR layoutPowertrainEn...

Ilustrasi aplikasi yang menggunakan libvorbisfile untuk memutar berkas Ogg Vorbis Pustaka (bahasa Inggris: Library) dalam ilmu komputer adalah koleksi dari rutin-rutin program yang digunakan untuk membangun dan mengembangkan perangkat lunak. Pustaka umumnya mengandung kode program dan data pembantu (banyak programmer menyebutnya sebagai helper), yang menyediakan layanan-layanan kepada program-program independen. Hal ini mengizinkan kode dan data dapat digunakan bersama-sama dan dapat diub...

 

 

97th season of top-tier football league in Scotland Football league seasonScottish Premier LeagueSeason2002–03Dates3 August 2002 – 25 May 2003ChampionsRangers 3rd Premier League title 50th Scottish titleRelegatedNo relegationChampions LeagueRangersCelticUEFA CupHeart of MidlothianDundeeTop goalscorerHenrik Larsson (28)Biggest home winCeltic 7–0 Aberdeen (3 November)Biggest away winDunfermline 0–6 Rangers (1 September)Highest attendance59,027 – Celtic v Rangers (6 October)Lowest atte...