Experiment with porting SGML to YAP, and trying to preserve SWI code as much

as possible.
This commit is contained in:
Vitor Santos Costa
2009-03-13 19:39:06 +00:00
parent 754f00d311
commit d6a06fe092
260 changed files with 31894 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://example.org/stuff/1.0/">
<rdf:Description rdf:about="http://example.org/basket">
<ex:hasFruit rdf:ID="l1" rdf:parseType="Collection">
<rdf:Description rdf:about="http://example.org/banana"/>
<rdf:Description rdf:about="http://example.org/apple"/>
<rdf:Description rdf:about="http://example.org/pear"/>
</ex:hasFruit>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,14 @@
rdf('http://example.org/basket', 'http://example.org/stuff/1.0/':hasFruit, '__List1').
rdf(l1, rdf:type, rdf:'Statement').
rdf(l1, rdf:subject, 'http://example.org/basket').
rdf(l1, rdf:predicate, 'http://example.org/stuff/1.0/':hasFruit).
rdf(l1, rdf:object, '__List1').
rdf('__List1', rdf:type, rdf:'List').
rdf('__List1', rdf:first, 'http://example.org/banana').
rdf('__List1', rdf:rest, '__List2').
rdf('__List2', rdf:type, rdf:'List').
rdf('__List2', rdf:first, 'http://example.org/apple').
rdf('__List2', rdf:rest, '__List3').
rdf('__List3', rdf:type, rdf:'List').
rdf('__List3', rdf:first, 'http://example.org/pear').
rdf('__List3', rdf:rest, rdf:nil).

View File

@@ -0,0 +1 @@
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', literal('Ora Lassila')).

View File

@@ -0,0 +1,4 @@
rdf(pages, rdf:type, rdf:'Bag').
rdf(pages, rdf:'_1', 'http://foo.org/foo.html').
rdf(pages, rdf:'_2', 'http://bar.org/bar.html').
rdf(each(pages), 'http://purl.org/metadata/dublin_core/':'Creator', literal('Ora Lassila')).

View File

@@ -0,0 +1 @@
rdf('http://www.swi.psy.uva.nl/projects/SWI-Prolog/', 'http://description.org/schema/':'Creator', literal('Jan Wielemaker')).

View File

@@ -0,0 +1 @@
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', literal('Ora Lassila')).

View File

@@ -0,0 +1 @@
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', literal('Ora Lassila')).

View File

@@ -0,0 +1,3 @@
rdf('http://www.w3.org', 'http://description.org/schema/':'Publisher', literal('World Wide Web Consortium')).
rdf('http://www.w3.org', 'http://description.org/schema/':'Title', literal('W3C Home Page')).
rdf('http://www.w3.org', 'http://description.org/schema/':'Date', literal('1998-10-03T02:27')).

View File

@@ -0,0 +1,3 @@
rdf('http://www.w3.org', 'http://description.org/schema/':'Publisher', literal('World Wide Web Consortium')).
rdf('http://www.w3.org', 'http://description.org/schema/':'Title', literal('W3C Home Page')).
rdf('http://www.w3.org', 'http://description.org/schema/':'Date', literal('1998-10-03T02:27')).

View File

@@ -0,0 +1,3 @@
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', 'http://www.w3.org/staffId/85740').
rdf('http://www.w3.org/staffId/85740', 'http://description.org/schema/':'Name', literal('Ora Lassila')).
rdf('http://www.w3.org/staffId/85740', 'http://description.org/schema/':'Email', literal('lassila@w3.org')).

View File

@@ -0,0 +1,3 @@
rdf('http://www.w3.org/staffId/85740', 'http://description.org/schema/':'Name', literal('Ora Lassila')).
rdf('http://www.w3.org/staffId/85740', 'http://description.org/schema/':'Email', literal('lassila@w3.org')).
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', 'http://www.w3.org/staffId/85740').

View File

@@ -0,0 +1,3 @@
rdf('http://www.w3.org/staffId/85740', 'http://description.org/schema/':'Name', literal('Ora Lassila')).
rdf('http://www.w3.org/staffId/85740', 'http://description.org/schema/':'Email', literal('lassila@w3.org')).
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', 'http://www.w3.org/staffId/85740').

View File

@@ -0,0 +1,4 @@
rdf('http://www.w3.org/staffId/85740', rdf:type, 'http://description.org/schema/Person').
rdf('http://www.w3.org/staffId/85740', 'http://description.org/view/':'Name', literal('Ora Lassila')).
rdf('http://www.w3.org/staffId/85740', 'http://description.org/view/':'Email', literal('lassila@w3.org')).
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', 'http://www.w3.org/staffId/85740').

View File

@@ -0,0 +1,3 @@
rdf('JW', sex, literal(male)).
rdf('JW', employed_at, literal('SWI')).
rdf('SWI-prolog', 'http://description.org/schema/':'Creator', 'JW').

View File

@@ -0,0 +1,4 @@
rdf('http://www.w3.org/staffId/85740', rdf:type, 'http://description.org/schema/Person').
rdf('http://www.w3.org/staffId/85740', 'http://description.org/view/':'Name', literal('Ora Lassila')).
rdf('http://www.w3.org/staffId/85740', 'http://description.org/view/':'Email', literal('lassila@w3.org')).
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', 'http://www.w3.org/staffId/85740').

View File

@@ -0,0 +1,7 @@
rdf('__Bag1', rdf:type, rdf:'Bag').
rdf('__Bag1', rdf:'_1', 'http://mycollege.edu/students/Amy').
rdf('__Bag1', rdf:'_2', 'http://mycollege.edu/students/Tim').
rdf('__Bag1', rdf:'_3', 'http://mycollege.edu/students/John').
rdf('__Bag1', rdf:'_4', 'http://mycollege.edu/students/Mary').
rdf('__Bag1', rdf:'_5', 'http://mycollege.edu/students/Sue').
rdf('http://mycollege.edu/courses/6.001', 'http://description.org/schema/':students, '__Bag1').

View File

@@ -0,0 +1,5 @@
rdf('__Alt1', rdf:type, rdf:'Alt').
rdf('__Alt1', rdf:'_1', 'ftp://ftp.x.org').
rdf('__Alt1', rdf:'_2', 'ftp://ftp.cs.purdue.edu').
rdf('__Alt1', rdf:'_3', 'ftp://ftp.eu.net').
rdf('http://x.org/packages/X11', 'http://description.org/schema/':'DistributionSite', '__Alt1').

View File

@@ -0,0 +1 @@
rdf(prefix('http://foo.org/doc'), 'http://description.org/schema/Copyright', literal('© 1998, The Foo Organization')).

View File

@@ -0,0 +1,5 @@
rdf('__Description1', rdf:subject, 'http://www.w3.org/Home/Lassila').
rdf('__Description1', rdf:predicate, 'http://description.org/schema/Creator').
rdf('__Description1', rdf:object, literal('Ora Lassila')).
rdf('__Description1', rdf:type, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement').
rdf('__Description1', 'http://description.org/schema/':attributedTo, literal('Ralph Swick')).

View File

@@ -0,0 +1,13 @@
rdf('D_001', rdf:type, rdf:'Bag').
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', literal('Ora Lassila')).
rdf('__Statement1', rdf:type, rdf:'Statement').
rdf('__Statement1', rdf:subject, 'http://www.w3.org/Home/Lassila').
rdf('__Statement1', rdf:predicate, 'http://description.org/schema/':'Creator').
rdf('__Statement1', rdf:object, literal('Ora Lassila')).
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Title', literal('Ora\'s Home Page')).
rdf('__Statement2', rdf:type, rdf:'Statement').
rdf('__Statement2', rdf:subject, 'http://www.w3.org/Home/Lassila').
rdf('__Statement2', rdf:predicate, 'http://description.org/schema/':'Title').
rdf('__Statement2', rdf:object, literal('Ora\'s Home Page')).
rdf('D_001', rdf:'_1', '__Statement1').
rdf('D_001', rdf:'_2', '__Statement2').

View File

@@ -0,0 +1,8 @@
rdf('JSPapersByDate', rdf:type, rdf:'Seq').
rdf('JSPapersByDate', rdf:'_1', 'http://www.dogworld.com/Aug96.doc').
rdf('JSPapersByDate', rdf:'_2', 'http://www.webnuts.net/Jan97.html').
rdf('JSPapersByDate', rdf:'_3', 'http://www.carchat.com/Sept97.html').
rdf('JSPapersBySubj', rdf:type, rdf:'Seq').
rdf('JSPapersBySubj', rdf:'_1', 'http://www.carchat.com/Sept97.html').
rdf('JSPapersBySubj', rdf:'_2', 'http://www.dogworld.com/Aug96.doc').
rdf('JSPapersBySubj', rdf:'_3', 'http://www.webnuts.net/Jan97.html').

View File

@@ -0,0 +1,12 @@
rdf('CreatorsAlphabeticalBySurname', rdf:type, rdf:'Seq').
rdf('CreatorsAlphabeticalBySurname', rdf:'_1', literal('Mary Andrew')).
rdf('CreatorsAlphabeticalBySurname', rdf:'_2', literal('Jacky Crystal')).
rdf('http://www.foo.com/cool.html', 'http://purl.org/metadata/dublin_core#':'Creator', 'CreatorsAlphabeticalBySurname').
rdf('MirroredSites', rdf:type, rdf:'Bag').
rdf('MirroredSites', rdf:'_1', 'http://www.foo.com.au/cool.html').
rdf('MirroredSites', rdf:'_2', 'http://www.foo.com.it/cool.html').
rdf('http://www.foo.com/cool.html', 'http://purl.org/metadata/dublin_core#':'Identifier', 'MirroredSites').
rdf('__Alt1', rdf:type, rdf:'Alt').
rdf('__Alt1', rdf:'_1', literal(lang(en, 'The Coolest Web Page'))).
rdf('__Alt1', rdf:'_2', literal(lang(it, 'Il Pagio di Web Fuba'))).
rdf('http://www.foo.com/cool.html', 'http://purl.org/metadata/dublin_core#':'Title', '__Alt1').

View File

@@ -0,0 +1,3 @@
rdf('__Description1', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#':value, literal('020 - Library Science')).
rdf('__Description1', 'http://mycorp.com/schemas/my-schema#':'Classification', literal('Dewey Decimal Code')).
rdf('http://www.webnuts.net/Jan97.html', 'http://purl.org/metadata/dublin_core#':'Subject', '__Description1').

View File

@@ -0,0 +1,3 @@
rdf('__Description1', rdf:value, literal('200')).
rdf('__Description1', 'http://www.nist.gov/units/':units, 'http://www.nist.gov/units/Pounds').
rdf('John_Smith', 'http://www.nist.gov/units/':weight, '__Description1').

View File

@@ -0,0 +1,3 @@
rdf('JW', name, literal('Jan Wielemaker')).
rdf('JW', works_at, literal('SWI')).
rdf('http://www.swi.psy.uva.nl/projects/SWI-Prolog/', 'http://description.org/schema/':'Creator', 'JW').

View File

@@ -0,0 +1,12 @@
rdf('http://www.dlib.org', 'http://purl.org/metadata/dublin_core#':'Title', literal('D-Lib Program - Research in Digital Libraries')).
rdf('http://www.dlib.org', 'http://purl.org/metadata/dublin_core#':'Description', literal('The D-Lib program supports the community of people\n with research interests in digital libraries and electronic\n publishing.')).
rdf('http://www.dlib.org', 'http://purl.org/metadata/dublin_core#':'Publisher', literal('Corporation For National Research Initiatives')).
rdf('http://www.dlib.org', 'http://purl.org/metadata/dublin_core#':'Date', literal('1995-01-07')).
rdf('__Bag1', rdf:type, rdf:'Bag').
rdf('__Bag1', rdf:'_1', literal('Research; statistical methods')).
rdf('__Bag1', rdf:'_2', literal('Education, research, related topics')).
rdf('__Bag1', rdf:'_3', literal('Library use Studies')).
rdf('http://www.dlib.org', 'http://purl.org/metadata/dublin_core#':'Subject', '__Bag1').
rdf('http://www.dlib.org', 'http://purl.org/metadata/dublin_core#':'Type', literal('World Wide Web Home Page')).
rdf('http://www.dlib.org', 'http://purl.org/metadata/dublin_core#':'Format', literal('text/html')).
rdf('http://www.dlib.org', 'http://purl.org/metadata/dublin_core#':'Language', literal(en)).

View File

@@ -0,0 +1,17 @@
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Title', literal('DLIB Magazine - The Magazine for Digital Library Research\n - May 1998')).
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Description', literal('D-LIB magazine is a monthly compilation of\n contributed stories, commentary, and briefings.')).
rdf('__Description1', 'http://purl.org/metadata/dublin_core_qualifiers#':'AgentType', 'http://purl.org/metadata/dublin_core_qualifiers#Editor').
rdf('__Description1', rdf:value, literal('Amy Friedlander')).
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Contributor', '__Description1').
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Publisher', literal('Corporation for National Research Initiatives')).
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Date', literal('1998-01-05')).
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Type', literal('electronic journal')).
rdf('__Bag1', rdf:type, rdf:'Bag').
rdf('__Bag1', rdf:'_1', literal('library use studies')).
rdf('__Bag1', rdf:'_2', literal('magazines and newspapers')).
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Subject', '__Bag1').
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Format', literal('text/html')).
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Identifier', literal('urn:issn:1082-9873')).
rdf('__Description2', 'http://purl.org/metadata/dublin_core_qualifiers#':'RelationType', 'http://purl.org/metadata/dublin_core_qualifiers#IsPartOf').
rdf('__Description2', rdf:value, 'http://www.dlib.org').
rdf('http://www.dlib.org/dlib/may98/05contents.html', 'http://purl.org/metadata/dublin_core#':'Relation', '__Description2').

View File

@@ -0,0 +1,15 @@
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Title', literal('An Introduction to the Resource Description Framework')).
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Creator', literal('Eric J. Miller')).
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Description', literal('The Resource Description Framework (RDF) is an\n infrastructure that enables the encoding, exchange and reuse of\n structured metadata. rdf is an application of xml that imposes needed\n structural constraints to provide unambiguous methods of expressing\n semantics. rdf additionally provides a means for publishing both\n human-readable and machine-processable vocabularies designed to\n encourage the reuse and extension of metadata semantics among\n disparate information communities. the structural constraints rdf\n imposes to support the consistent encoding and exchange of\n standardized metadata provides for the interchangeability of separate\n packages of metadata defined by different resource description\n communities. ')).
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Publisher', literal('Corporation for National Research Initiatives')).
rdf('__Bag1', rdf:type, rdf:'Bag').
rdf('__Bag1', rdf:'_1', literal('machine-readable catalog record formats')).
rdf('__Bag1', rdf:'_2', literal('applications of computer file organization and\n\t access methods')).
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Subject', '__Bag1').
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Rights', literal('Copyright @ 1998 Eric Miller')).
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Type', literal('Electronic Document')).
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Format', literal('text/html')).
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Language', literal(en)).
rdf('__Description1', 'http://purl.org/metadata/dublin_core_qualifiers#':'RelationType', 'http://purl.org/metadata/dublin_core_qualifiers#IsPartOf').
rdf('__Description1', rdf:value, 'http://www.dlib.org/dlib/may98/05contents.html').
rdf('http://www.dlib.org/dlib/may98/miller/05miller.html', 'http://purl.org/metadata/dublin_core#':'Relation', '__Description1').

View File

@@ -0,0 +1,2 @@
rdf('http://mycorp.com/papers/NobelPaper1', 'http://purl.org/metadata/dublin_core#Title', literal(type('http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral', ['Ramifications of ', element('http://www.w3.org/TR/REC-mathml':apply, [], [element('http://www.w3.org/TR/REC-mathml':power, [], []), element('http://www.w3.org/TR/REC-mathml':apply, [], [element('http://www.w3.org/TR/REC-mathml':plus, [], []), element('http://www.w3.org/TR/REC-mathml':ci, [], [a]), element('http://www.w3.org/TR/REC-mathml':ci, [], [b])]), element('http://www.w3.org/TR/REC-mathml':cn, [], ['2'])]), ' to World Peace\n ']))).
rdf('http://mycorp.com/papers/NobelPaper1', 'http://purl.org/metadata/dublin_core#Creator', literal('David Hume')).

View File

@@ -0,0 +1,44 @@
rdf('L01', rdf:type, rdf:'Bag').
rdf('http://www.w3.org/PICS/Overview.html', 'http://www.gcf.org/v2.5':suds, literal('0.5')).
rdf('__Statement1', rdf:type, rdf:'Statement').
rdf('__Statement1', rdf:subject, 'http://www.w3.org/PICS/Overview.html').
rdf('__Statement1', rdf:predicate, 'http://www.gcf.org/v2.5':suds).
rdf('__Statement1', rdf:object, literal('0.5')).
rdf('http://www.w3.org/PICS/Overview.html', 'http://www.gcf.org/v2.5':density, literal('0')).
rdf('__Statement2', rdf:type, rdf:'Statement').
rdf('__Statement2', rdf:subject, 'http://www.w3.org/PICS/Overview.html').
rdf('__Statement2', rdf:predicate, 'http://www.gcf.org/v2.5':density).
rdf('__Statement2', rdf:object, literal('0')).
rdf('http://www.w3.org/PICS/Overview.html', 'http://www.gcf.org/v2.5':'color.hue', literal('1')).
rdf('__Statement3', rdf:type, rdf:'Statement').
rdf('__Statement3', rdf:subject, 'http://www.w3.org/PICS/Overview.html').
rdf('__Statement3', rdf:predicate, 'http://www.gcf.org/v2.5':'color.hue').
rdf('__Statement3', rdf:object, literal('1')).
rdf('L01', rdf:'_1', '__Statement1').
rdf('L01', rdf:'_2', '__Statement2').
rdf('L01', rdf:'_3', '__Statement3').
rdf('L02', rdf:type, rdf:'Bag').
rdf('http://www.w3.org/PICS/Underview.html', 'http://www.gcf.org/v2.5':subject, literal('2')).
rdf('__Statement4', rdf:type, rdf:'Statement').
rdf('__Statement4', rdf:subject, 'http://www.w3.org/PICS/Underview.html').
rdf('__Statement4', rdf:predicate, 'http://www.gcf.org/v2.5':subject).
rdf('__Statement4', rdf:object, literal('2')).
rdf('http://www.w3.org/PICS/Underview.html', 'http://www.gcf.org/v2.5':density, literal('1')).
rdf('__Statement5', rdf:type, rdf:'Statement').
rdf('__Statement5', rdf:subject, 'http://www.w3.org/PICS/Underview.html').
rdf('__Statement5', rdf:predicate, 'http://www.gcf.org/v2.5':density).
rdf('__Statement5', rdf:object, literal('1')).
rdf('http://www.w3.org/PICS/Underview.html', 'http://www.gcf.org/v2.5':'color.hue', literal('1')).
rdf('__Statement6', rdf:type, rdf:'Statement').
rdf('__Statement6', rdf:subject, 'http://www.w3.org/PICS/Underview.html').
rdf('__Statement6', rdf:predicate, 'http://www.gcf.org/v2.5':'color.hue').
rdf('__Statement6', rdf:object, literal('1')).
rdf('L02', rdf:'_1', '__Statement4').
rdf('L02', rdf:'_2', '__Statement5').
rdf('L02', rdf:'_3', '__Statement6').
rdf(each('L01'), 'http://www.w3.org/TR/xxxx/WD-PICS-labels#':by, literal('John Doe')).
rdf(each('L01'), 'http://www.w3.org/TR/xxxx/WD-PICS-labels#':on, literal('1994.11.05T08:15-0500')).
rdf(each('L01'), 'http://www.w3.org/TR/xxxx/WD-PICS-labels#':until, literal('1995.12.31T23:59-0000')).
rdf(each('L02'), 'http://www.w3.org/TR/xxxx/WD-PICS-labels#':by, literal('Jane Doe')).
rdf(each('L02'), 'http://www.w3.org/TR/xxxx/WD-PICS-labels#':on, literal('1994.11.05T08:15-0500')).
rdf(each('L02'), 'http://www.w3.org/TR/xxxx/WD-PICS-labels#':until, literal('1995.12.31T23:59-0000')).

View File

@@ -0,0 +1,8 @@
rdf('L03', rdf:type, rdf:'Bag').
rdf(prefix('http://www.w3.org/WWW/'), 'http://www.ages.org/our-service/v1.0/':age, literal('11')).
rdf('__Statement1', rdf:type, rdf:'Statement').
rdf('__Statement1', rdf:subject, prefix('http://www.w3.org/WWW/')).
rdf('__Statement1', rdf:predicate, 'http://www.ages.org/our-service/v1.0/':age).
rdf('__Statement1', rdf:object, literal('11')).
rdf('L03', rdf:'_1', '__Statement1').
rdf(each('L03'), 'http://www.w3.org/TR/xxxx/WD-PICS-labels#':by, literal('abaird@w3.org')).

View File

@@ -0,0 +1,4 @@
rdf('CreatorsAlphabeticalBySurname', rdf:type, rdf:'Seq').
rdf('CreatorsAlphabeticalBySurname', rdf:'_1', 'Mary Andrew').
rdf('CreatorsAlphabeticalBySurname', rdf:'_2', 'Jacky Crystal').
rdf('http://www.foo.com/cool.html', 'http://purl.org/metadata/dublin_core#':'Creator', 'CreatorsAlphabeticalBySurname').

View File

@@ -0,0 +1,7 @@
rdf('JW', name, literal('Jan Wielemaker')).
rdf('JW', works_at, literal('SWI')).
rdf('http://www.swi.psy.uva.nl/projects/SWI-Prolog/', 'http://description.org/schema/':'Creator', 'JW').
rdf('pl-creator', rdf:type, rdf:'Statement').
rdf('pl-creator', rdf:subject, 'http://www.swi.psy.uva.nl/projects/SWI-Prolog/').
rdf('pl-creator', rdf:predicate, 'http://description.org/schema/':'Creator').
rdf('pl-creator', rdf:object, 'JW').

View File

@@ -0,0 +1,128 @@
rdf('Resource', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('Resource', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'Resource'))).
rdf('Resource', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'Ressource'))).
rdf('Resource', 'http://www.w3.org/2000/01/rdf-schema#comment', literal('The most general class')).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, type))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, type))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Indicates membership of a class')).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#range', 'Class').
rdf(comment, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(comment, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, comment))).
rdf(comment, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, commentaire))).
rdf(comment, 'http://www.w3.org/2000/01/rdf-schema#domain', 'Resource').
rdf(comment, 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Use this for descriptions')).
rdf(comment, 'http://www.w3.org/2000/01/rdf-schema#range', 'Literal').
rdf(label, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(label, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(label, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, label))).
rdf(label, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, label))).
rdf(label, 'http://www.w3.org/2000/01/rdf-schema#domain', 'Resource').
rdf(label, 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Provides a human-readable version of a resource name.')).
rdf(label, 'http://www.w3.org/2000/01/rdf-schema#range', 'Literal').
rdf('Class', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('Class', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'Class'))).
rdf('Class', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'Classe'))).
rdf('Class', 'http://www.w3.org/2000/01/rdf-schema#comment', literal('The concept of Class')).
rdf('Class', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'Resource').
rdf(subClassOf, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(subClassOf, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, subClassOf))).
rdf(subClassOf, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, sousClasseDe))).
rdf(subClassOf, 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Indicates membership of a class')).
rdf(subClassOf, 'http://www.w3.org/2000/01/rdf-schema#range', 'Class').
rdf(subClassOf, 'http://www.w3.org/2000/01/rdf-schema#domain', 'Class').
rdf(subPropertyOf, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(subPropertyOf, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, subPropertyOf))).
rdf(subPropertyOf, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, sousPropriétéDe))).
rdf(subPropertyOf, 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Indicates specialization of properties')).
rdf(subPropertyOf, 'http://www.w3.org/2000/01/rdf-schema#range', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(subPropertyOf, 'http://www.w3.org/2000/01/rdf-schema#domain', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(seeAlso, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(seeAlso, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, seeAlso))).
rdf(seeAlso, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, voirAussi))).
rdf(seeAlso, 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Indicates a resource that provides information about the subject resource.')).
rdf(seeAlso, 'http://www.w3.org/2000/01/rdf-schema#range', 'http://www.w3.org/2000/01/rdf-schema#Resource').
rdf(seeAlso, 'http://www.w3.org/2000/01/rdf-schema#domain', 'http://www.w3.org/2000/01/rdf-schema#Resource').
rdf(isDefinedBy, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(isDefinedBy, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf(isDefinedBy, 'http://www.w3.org/2000/01/rdf-schema#subPropertyOf', seeAlso).
rdf(isDefinedBy, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, isDefinedBy))).
rdf(isDefinedBy, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, esDéfiniPar))).
rdf(isDefinedBy, 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Indicates a resource containing and defining the subject resource.')).
rdf(isDefinedBy, 'http://www.w3.org/2000/01/rdf-schema#range', 'http://www.w3.org/2000/01/rdf-schema#Resource').
rdf(isDefinedBy, 'http://www.w3.org/2000/01/rdf-schema#domain', 'http://www.w3.org/2000/01/rdf-schema#Resource').
rdf('ConstraintResource', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('ConstraintResource', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'ConstraintResource'))).
rdf('ConstraintResource', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'RessourceContrainte'))).
rdf('ConstraintResource', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'Class').
rdf('ConstraintResource', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'Resource').
rdf('ConstraintResource', 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Resources used to express RDF Schema constraints.')).
rdf('ConstraintProperty', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('ConstraintProperty', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'ConstraintProperty'))).
rdf('ConstraintProperty', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'PropriétéContrainte'))).
rdf('ConstraintProperty', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('ConstraintProperty', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'ConstraintResource').
rdf('ConstraintProperty', 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Properties used to express RDF Schema constraints.')).
rdf(domain, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#ConstraintProperty').
rdf(domain, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, domain))).
rdf(domain, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, domaine))).
rdf(domain, 'http://www.w3.org/2000/01/rdf-schema#comment', literal('This is how we associate a class with\n properties that its instances can have')).
rdf(range, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#ConstraintProperty').
rdf(range, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, range))).
rdf(range, 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, étendue))).
rdf(range, 'http://www.w3.org/2000/01/rdf-schema#comment', literal('Properties that can be used in a\n schema to provide constraints')).
rdf(range, 'http://www.w3.org/2000/01/rdf-schema#range', 'Class').
rdf(range, 'http://www.w3.org/2000/01/rdf-schema#domain', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Property', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Property', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'Property'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Property', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'Propriété'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Property', 'http://www.w3.org/2000/01/rdf-schema#comment', literal('The concept of a property.')).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Property', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'Resource').
rdf('Literal', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('Literal', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'Literal'))).
rdf('Literal', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'Littéral'))).
rdf('Literal', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'Class').
rdf('Literal', 'http://www.w3.org/2000/01/rdf-schema#comment', literal('This represents the set of atomic values, eg. textual strings.')).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'Statement'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'Déclaration'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'Resource').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement', 'http://www.w3.org/2000/01/rdf-schema#comment', literal('This represents the set of reified statements.')).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#subject', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#subject', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, subject))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#subject', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, sujet))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#subject', 'http://www.w3.org/2000/01/rdf-schema#domain', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#subject', 'http://www.w3.org/2000/01/rdf-schema#range', 'Resource').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, predicate))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, prédicat))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate', 'http://www.w3.org/2000/01/rdf-schema#domain', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate', 'http://www.w3.org/2000/01/rdf-schema#range', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#object', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#object', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, object))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#object', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, objet))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#object', 'http://www.w3.org/2000/01/rdf-schema#domain', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement').
rdf('Container', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('Container', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'Container'))).
rdf('Container', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'Enveloppe'))).
rdf('Container', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'Resource').
rdf('Container', 'http://www.w3.org/2000/01/rdf-schema#comment', literal('This represents the set Containers.')).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'Bag'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'Ensemble'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'Container').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'Sequence'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'Séquence'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'Container').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'Alt'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, 'Choix'))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'Container').
rdf('ContainerMembershipProperty', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2000/01/rdf-schema#Class').
rdf('ContainerMembershipProperty', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, 'ContainerMembershipProperty'))).
rdf('ContainerMembershipProperty', 'http://www.w3.org/2000/01/rdf-schema#subClassOf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#value', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Property').
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#value', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(en, object))).
rdf('http://www.w3.org/1999/02/22-rdf-syntax-ns#value', 'http://www.w3.org/2000/01/rdf-schema#label', literal(lang(fr, value))).

View File

@@ -0,0 +1,9 @@
rdf('OntologyObjectMetaClass', rdf:type, 'http://www.w3.org/TR/1999/PR-rdf-schema-19990303#Class').
rdf('OntologyObjectMetaClass', 'http://www.w3.org/TR/1999/PR-rdf-schema-19990303#':subClassOf, 'http://www.w3.org/TR/1999/PR-rdf-schema-19990303#Class').
rdf('OntologyObjectMetaClass', 'http://smi-web.stanford.edu/projects/protege/protege-rdf/protege-19992012#':abstractProperty, literal(concrete)).
rdf(identifier, rdf:type, 'http://www.w3.org/TR/1999/PR-rdf-schema-19990303#Property').
rdf('__Description1', rdf:type, 'http://www.w3.org/rdfutil#facetResource').
rdf('__Description1', 'http://www.w3.org/rdfutil#':domain, 'OntologyObjectMetaClass').
rdf('__Description1', 'http://www.w3.org/rdfutil#':range, 'http://www.w3.org/TR/xmlschema-2/#string').
rdf('__Description1', 'http://www.w3.org/rdfutil#':cardinality, literal('1')).
rdf(identifier, 'http://www.w3.org/rdfutil#':facets, '__Description1').

View File

@@ -0,0 +1,6 @@
rdf('http://www.w3.org/Home/Lassila', 'http://description.org/schema/':'Creator', literal('Ora Lassila')).
rdf(statement1, rdf:type, rdf:'Statement').
rdf(statement1, rdf:subject, 'http://www.w3.org/Home/Lassila').
rdf(statement1, rdf:predicate, 'http://description.org/schema/':'Creator').
rdf(statement1, rdf:object, literal('Ora Lassila')).
rdf(statement1, 'http://description.org/schema/':believedBy, literal('Stefan Decker')).

View File

@@ -0,0 +1,4 @@
rdf('__Description1', rdf:type, 'http://www.mytypes.org/schema/Bicycle').
rdf('__Description1', wheels, literal('2')).
rdf('__Description2', rdf:type, 'http://www.mytypes.org/schema/Bicycle').
rdf('__Description2', 'http://www.mytypes.org/schema/':wheels, literal('2')).

View File

@@ -0,0 +1,3 @@
rdf('JohnWeight', rdf:value, literal('200')).
rdf('JohnWeight', 'http://www.nist.gov/units/':units, 'http://www.nist.gov/units/Pounds').
rdf('John_Smith', 'http://www.nist.gov/units/':weight, 'JohnWeight').

View File

@@ -0,0 +1,4 @@
rdf('John_Smith', a1, literal('John')).
rdf('__Description1', v, literal('200')).
rdf('__Description1', t, literal(pounds)).
rdf('John_Smith', a1, '__Description1').

View File

@@ -0,0 +1,7 @@
rdf('__Description1', name, literal('Jan Wielemaker')).
rdf('__Description1', works_at, literal('SWI')).
rdf('http://www.swi.psy.uva.nl/projects/SWI-Prolog/', 'http://description.org/schema/':'Creator', '__Description1').
rdf('JW', rdf:type, rdf:'Statement').
rdf('JW', rdf:subject, 'http://www.swi.psy.uva.nl/projects/SWI-Prolog/').
rdf('JW', rdf:predicate, 'http://description.org/schema/':'Creator').
rdf('JW', rdf:object, '__Description1').

View File

@@ -0,0 +1,4 @@
rdf('__Bag1', rdf:type, rdf:'Bag').
rdf('__Bag1', rdf:'_1', literal('Jan Wielemaker')).
rdf('__Bag1', rdf:'_2', literal('Anjo Anjewierden')).
rdf('http://www.swi.psy.uva.nl/projects/xpce/', 'http://description.org/schema/':'Creator', '__Bag1').

View File

@@ -0,0 +1,5 @@
rdf('__Bag1', rdf:type, rdf:'Bag').
rdf('__Description1', name, literal('Jan Wielemaker')).
rdf('__Description1', employed_at, literal('SWI')).
rdf('__Bag1', rdf:'_1', '__Description1').
rdf('http://www.swi.psy.uva.nl/projects/xpce/', 'http://description.org/schema/':'Creator', '__Bag1').

View File

@@ -0,0 +1,3 @@
rdf(weight_001, 'http://www.nist.gov/RDFschema/':'Units', 'http://www.nist.gov/units/pounds').
rdf(weight_001, value, literal('200')).
rdf('John_Smith', 'http://www.nist.gov/RDFschema/':'Weight', weight_001).

View File

@@ -0,0 +1,9 @@
rdf('Statement_001', rdf:type, rdf:'Bag').
rdf('http://www.bar.com/some.doc', 'http://purl.org/metadata/dublin_core/':'Creator', literal('John Smith')).
rdf('__Statement1', rdf:type, rdf:'Statement').
rdf('__Statement1', rdf:subject, 'http://www.bar.com/some.doc').
rdf('__Statement1', rdf:predicate, 'http://purl.org/metadata/dublin_core/':'Creator').
rdf('__Statement1', rdf:object, literal('John Smith')).
rdf('Statement_001', rdf:'_1', '__Statement1').
rdf(each('Statement_001'), 'http://www.w3.org/Schemas/DS-Schema/':'CreatedOn', literal('1998-02-06T14:00Z')).
rdf(each('Statement_001'), 'http://www.w3.org/Schemas/DS-Schema/':'CreatedBy', literal('Jane Cooper')).

View File

@@ -0,0 +1,6 @@
rdf('__Description1', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2002/07/owl#Restriction').
rdf('http://www.w3.org/2002/03owlt/I5.8/inconsistent001#p', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/2002/07/owl#DatatypeProperty').
rdf('http://www.w3.org/2002/03owlt/I5.8/inconsistent001#p', 'http://www.w3.org/2000/01/rdf-schema#range', 'http://www.w3.org/2001/XMLSchema#byte').
rdf('__Description1', 'http://www.w3.org/2002/07/owl#onProperty', 'http://www.w3.org/2002/03owlt/I5.8/inconsistent001#p').
rdf('__Description1', 'http://www.w3.org/2002/07/owl#cardinality', literal(type('http://www.w3.org/2001/XMLSchema#nonNegativeInteger', '257'))).
rdf('http://www.w3.org/2002/03owlt/I5.8/inconsistent001#john', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', '__Description1').

View File

@@ -0,0 +1,2 @@
rdf(id1, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.swi.psy.uva.nl/test#test').
rdf(id1, 'http://www.swi.psy.uva.nl/test#a', literal(type('http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral', [element(b, [], [strong])]))).

View File

@@ -0,0 +1,2 @@
rdf(id1, rdf:type, 'http://www.swi.psy.uva.nl/test#test').
rdf(id1, 'http://www.swi.psy.uva.nl/test#':int, literal(type('http://www.w3.org/2000/10/XMLSchema#int', '42'))).

View File

@@ -0,0 +1,10 @@
<?xml version='1.0'?>
<!-- Example 1 from REC-rdf-syntax -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.w3.org/Home/Lassila">
<s:Creator>Ora Lassila</s:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:DC="http://purl.org/metadata/dublin_core/">
<Bag ID="pages">
<li resource="http://foo.org/foo.html" />
<li resource="http://bar.org/bar.html" />
</Bag>
<Description aboutEach="#pages">
<DC:Creator>Ora Lassila</DC:Creator>
</Description>
</RDF>

View File

@@ -0,0 +1,7 @@
<?xml version='1.0'?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.swi.psy.uva.nl/projects/SWI-Prolog/"
s:Creator="Jan Wielemaker"/>
</rdf:RDF>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating namespaces -->
<RDF
xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<Description about="http://www.w3.org/Home/Lassila">
<s:Creator>Ora Lassila</s:Creator>
</Description>
</RDF>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating namespaces -->
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Description about="http://www.w3.org/Home/Lassila">
<Creator xmlns="http://description.org/schema/">Ora Lassila</Creator>
</Description>
</RDF>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.w3.org">
<s:Publisher>World Wide Web Consortium</s:Publisher>
<s:Title>W3C Home Page</s:Title>
<s:Date>1998-10-03T02:27</s:Date>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.w3.org"
s:Publisher="World Wide Web Consortium"
s:Title="W3C Home Page"
s:Date="1998-10-03T02:27"/>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.w3.org/Home/Lassila">
<s:Creator rdf:resource="http://www.w3.org/staffId/85740"/>
</rdf:Description>
<rdf:Description about="http://www.w3.org/staffId/85740">
<s:Name>Ora Lassila</s:Name>
<s:Email>lassila@w3.org</s:Email>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.w3.org/Home/Lassila">
<s:Creator>
<rdf:Description about="http://www.w3.org/staffId/85740">
<s:Name>Ora Lassila</s:Name>
<s:Email>lassila@w3.org</s:Email>
</rdf:Description>
</s:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.w3.org/Home/Lassila">
<s:Creator rdf:resource="http://www.w3.org/staffId/85740"
s:Name="Ora Lassila"
s:Email="lassila@w3.org"/>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/"
xmlns:v="http://description.org/view/">
<rdf:Description about="http://www.w3.org/Home/Lassila">
<s:Creator>
<rdf:Description about="http://www.w3.org/staffId/85740">
<rdf:type resource="http://description.org/schema/Person"/>
<v:Name>Ora Lassila</v:Name>
<v:Email>lassila@w3.org</v:Email>
</rdf:Description>
</s:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,8 @@
<?xml version='1.0'?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="SWI-prolog">
<s:Creator rdf:resource="JW" sex="male" employed_at="SWI"/>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/"
xmlns:v="http://description.org/view/">
<rdf:Description about="http://www.w3.org/Home/Lassila">
<s:Creator>
<!-- REC-rdf-syntax just says `about' -->
<s:Person rdf:about="http://www.w3.org/staffId/85740">
<v:Name>Ora Lassila</v:Name>
<v:Email>lassila@w3.org</v:Email>
</s:Person>
</s:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/"
xmlns:v="http://description.org/view/">
<rdf:Description about="http://mycollege.edu/courses/6.001">
<s:students>
<rdf:Bag>
<rdf:li resource="http://mycollege.edu/students/Amy"/>
<rdf:li resource="http://mycollege.edu/students/Tim"/>
<rdf:li resource="http://mycollege.edu/students/John"/>
<rdf:li resource="http://mycollege.edu/students/Mary"/>
<rdf:li resource="http://mycollege.edu/students/Sue"/>
</rdf:Bag>
</s:students>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/"
xmlns:v="http://description.org/view/">
<rdf:Description about="http://x.org/packages/X11">
<s:DistributionSite>
<rdf:Alt>
<rdf:li resource="ftp://ftp.x.org"/>
<rdf:li resource="ftp://ftp.cs.purdue.edu"/>
<rdf:li resource="ftp://ftp.eu.net"/>
</rdf:Alt>
</s:DistributionSite>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/"
xmlns:v="http://description.org/view/">
<rdf:Description aboutEachPrefix="http://foo.org/doc">
<s:Copyright><3E> 1998, The Foo Organization</s:Copyright>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:a="http://description.org/schema/">
<rdf:Description>
<rdf:subject resource="http://www.w3.org/Home/Lassila" />
<rdf:predicate resource="http://description.org/schema/Creator" />
<rdf:object>Ora Lassila</rdf:object>
<rdf:type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement" />
<a:attributedTo>Ralph Swick</a:attributedTo>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.w3.org/Home/Lassila" bagID="D_001">
<s:Creator>Ora Lassila</s:Creator>
<s:Title>Ora's Home Page</s:Title>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Seq ID="JSPapersByDate">
<li resource="http://www.dogworld.com/Aug96.doc"/>
<li resource="http://www.webnuts.net/Jan97.html"/>
<li resource="http://www.carchat.com/Sept97.html"/>
</Seq>
<Seq ID="JSPapersBySubj">
<li resource="http://www.carchat.com/Sept97.html"/>
<li resource="http://www.dogworld.com/Aug96.doc"/>
<li resource="http://www.webnuts.net/Jan97.html"/>
</Seq>
</RDF>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/metadata/dublin_core#">
<rdf:Description about="http://www.foo.com/cool.html">
<dc:Creator>
<rdf:Seq ID="CreatorsAlphabeticalBySurname">
<rdf:li>Mary Andrew</rdf:li>
<rdf:li>Jacky Crystal</rdf:li>
</rdf:Seq>
</dc:Creator>
<dc:Identifier>
<rdf:Bag ID="MirroredSites">
<rdf:li rdf:resource="http://www.foo.com.au/cool.html"/>
<rdf:li rdf:resource="http://www.foo.com.it/cool.html"/>
</rdf:Bag>
</dc:Identifier>
<dc:Title>
<rdf:Alt>
<rdf:li xml:lang="en">The Coolest Web Page</rdf:li>
<rdf:li xml:lang="it">Il Pagio di Web Fuba</rdf:li>
</rdf:Alt>
</dc:Title>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<RDF
xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/metadata/dublin_core#"
xmlns:l="http://mycorp.com/schemas/my-schema#">
<Description about="http://www.webnuts.net/Jan97.html">
<dc:Subject
rdf:value="020 - Library Science"
l:Classification="Dewey Decimal Code"/>
</Description>
</RDF>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<RDF
xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:n="http://www.nist.gov/units/">
<Description about="John_Smith">
<n:weight rdf:parseType="Resource">
<rdf:value>200</rdf:value>
<n:units rdf:resource="http://www.nist.gov/units/Pounds"/>
</n:weight>
</Description>
</RDF>

View File

@@ -0,0 +1,15 @@
<?xml version='1.0'?>
<!-- Test inline description -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.swi.psy.uva.nl/projects/SWI-Prolog/">
<s:Creator>
<rdf:Description ID="JW">
<name>Jan Wielemaker</name>
<works_at>SWI</works_at>
</rdf:Description>
</s:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/metadata/dublin_core#">
<rdf:Description about="http://www.dlib.org">
<dc:Title>D-Lib Program - Research in Digital Libraries</dc:Title>
<dc:Description>The D-Lib program supports the community of people
with research interests in digital libraries and electronic
publishing.</dc:Description>
<dc:Publisher>Corporation For National Research Initiatives</dc:Publisher>
<dc:Date>1995-01-07</dc:Date>
<dc:Subject>
<rdf:Bag>
<rdf:li>Research; statistical methods</rdf:li>
<rdf:li>Education, research, related topics</rdf:li>
<rdf:li>Library use Studies</rdf:li>
</rdf:Bag>
</dc:Subject>
<dc:Type>World Wide Web Home Page</dc:Type>
<dc:Format>text/html</dc:Format>
<dc:Language>en</dc:Language>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/metadata/dublin_core#"
xmlns:dcq="http://purl.org/metadata/dublin_core_qualifiers#">
<rdf:Description about="http://www.dlib.org/dlib/may98/05contents.html">
<dc:Title>DLIB Magazine - The Magazine for Digital Library Research
- May 1998</dc:Title>
<dc:Description>D-LIB magazine is a monthly compilation of
contributed stories, commentary, and briefings.</dc:Description>
<dc:Contributor rdf:parseType="Resource">
<dcq:AgentType
rdf:resource="http://purl.org/metadata/dublin_core_qualifiers#Editor"/>
<rdf:value>Amy Friedlander</rdf:value>
</dc:Contributor>
<dc:Publisher>Corporation for National Research Initiatives</dc:Publisher>
<dc:Date>1998-01-05</dc:Date>
<dc:Type>electronic journal</dc:Type>
<dc:Subject>
<rdf:Bag>
<rdf:li>library use studies</rdf:li>
<rdf:li>magazines and newspapers</rdf:li>
</rdf:Bag>
</dc:Subject>
<dc:Format>text/html</dc:Format>
<dc:Identifier>urn:issn:1082-9873</dc:Identifier>
<dc:Relation rdf:parseType="Resource">
<dcq:RelationType
rdf:resource="http://purl.org/metadata/dublin_core_qualifiers#IsPartOf"/>
<rdf:value resource="http://www.dlib.org"/>
</dc:Relation>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/metadata/dublin_core#"
xmlns:dcq="http://purl.org/metadata/dublin_core_qualifiers#">
<rdf:Description about=
"http://www.dlib.org/dlib/may98/miller/05miller.html">
<dc:Title>An Introduction to the Resource Description Framework</dc:Title>
<dc:Creator>Eric J. Miller</dc:Creator>
<dc:Description>The Resource Description Framework (RDF) is an
infrastructure that enables the encoding, exchange and reuse of
structured metadata. rdf is an application of xml that imposes needed
structural constraints to provide unambiguous methods of expressing
semantics. rdf additionally provides a means for publishing both
human-readable and machine-processable vocabularies designed to
encourage the reuse and extension of metadata semantics among
disparate information communities. the structural constraints rdf
imposes to support the consistent encoding and exchange of
standardized metadata provides for the interchangeability of separate
packages of metadata defined by different resource description
communities. </dc:Description>
<dc:Publisher>Corporation for National Research Initiatives</dc:Publisher>
<dc:Subject>
<rdf:Bag>
<rdf:li>machine-readable catalog record formats</rdf:li>
<rdf:li>applications of computer file organization and
access methods</rdf:li>
</rdf:Bag>
</dc:Subject>
<dc:Rights>Copyright @ 1998 Eric Miller</dc:Rights>
<dc:Type>Electronic Document</dc:Type>
<dc:Format>text/html</dc:Format>
<dc:Language>en</dc:Language>
<dc:Relation rdf:parseType="Resource">
<dcq:RelationType
rdf:resource="http://purl.org/metadata/dublin_core_qualifiers#IsPartOf"/>
<rdf:value resource="http://www.dlib.org/dlib/may98/05contents.html"/>
</dc:Relation>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating literal value -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description
xmlns:dc="http://purl.org/metadata/dublin_core#"
xmlns="http://www.w3.org/TR/REC-mathml"
rdf:about="http://mycorp.com/papers/NobelPaper1">
<dc:Title rdf:parseType="Literal">
Ramifications of <apply><power/><apply><plus/><ci>a</ci><ci>b</ci></apply>
<cn>2</cn></apply> to World Peace
</dc:Title>
<dc:Creator>David Hume</dc:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating literal value -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:pics="http://www.w3.org/TR/xxxx/WD-PICS-labels#"
xmlns:gcf="http://www.gcf.org/v2.5">
<rdf:Description about="http://www.w3.org/PICS/Overview.html" bagID="L01"
gcf:suds="0.5"
gcf:density="0"
gcf:color.hue="1"/>
<rdf:Description about="http://www.w3.org/PICS/Underview.html" bagID="L02"
gcf:subject="2"
gcf:density="1"
gcf:color.hue="1"/>
<rdf:Description aboutEach="#L01"
pics:by="John Doe"
pics:on="1994.11.05T08:15-0500"
pics:until="1995.12.31T23:59-0000"/>
<rdf:Description aboutEach="#L02"
pics:by="Jane Doe"
pics:on="1994.11.05T08:15-0500"
pics:until="1995.12.31T23:59-0000"/>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating literal value -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:pics="http://www.w3.org/TR/xxxx/WD-PICS-labels#"
xmlns:ages="http://www.ages.org/our-service/v1.0/">
<rdf:Description aboutEachPrefix="http://www.w3.org/WWW/" bagID="L03"
ages:age="11"/>
<rdf:Description aboutEach="#L03"
pics:by="abaird@w3.org"/>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating literal value -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/metadata/dublin_core#">
<rdf:Description about="http://www.foo.com/cool.html">
<dc:Creator>
<rdf:Seq ID="CreatorsAlphabeticalBySurname"
rdf:_1="Mary Andrew"
rdf:_2="Jacky Crystal"/>
</dc:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version='1.0'?>
<!-- Test inline description -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.swi.psy.uva.nl/projects/SWI-Prolog/">
<s:Creator rdf:ID="pl-creator">
<rdf:Description rdf:about="JW">
<name>Jan Wielemaker</name>
<works_at>SWI</works_at>
</rdf:Description>
</s:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,190 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Definition of RDF-schema in itself -->
<!-- From http://www.w3.org/TR/rdf-schema/ -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<rdfs:Class rdf:ID="Resource">
<rdfs:label xml:lang="en">Resource</rdfs:label>
<rdfs:label xml:lang="fr">Ressource</rdfs:label>
<rdfs:comment>The most general class</rdfs:comment>
</rdfs:Class>
<rdf:Property about="http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
<rdfs:label xml:lang="en">type</rdfs:label>
<rdfs:label xml:lang="fr">type</rdfs:label>
<rdfs:comment>Indicates membership of a class</rdfs:comment>
<rdfs:range rdf:resource="#Class"/>
</rdf:Property>
<rdf:Property ID="comment">
<rdfs:label xml:lang="en">comment</rdfs:label>
<rdfs:label xml:lang="fr">commentaire</rdfs:label>
<rdfs:domain rdf:resource="#Resource"/>
<rdfs:comment>Use this for descriptions</rdfs:comment>
<rdfs:range rdf:resource="#Literal"/>
</rdf:Property>
<rdf:Property ID="label">
<rdf:type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
<rdfs:label xml:lang="en">label</rdfs:label>
<rdfs:label xml:lang="fr">label</rdfs:label>
<rdfs:domain rdf:resource="#Resource"/>
<rdfs:comment>Provides a human-readable version of a resource name.</rdfs:comment>
<rdfs:range rdf:resource="#Literal"/>
</rdf:Property>
<rdfs:Class rdf:ID="Class">
<rdfs:label xml:lang="en">Class</rdfs:label>
<rdfs:label xml:lang="fr">Classe</rdfs:label>
<rdfs:comment>The concept of Class</rdfs:comment>
<rdfs:subClassOf rdf:resource="#Resource"/>
</rdfs:Class>
<rdf:Property ID="subClassOf">
<rdfs:label xml:lang="en">subClassOf</rdfs:label>
<rdfs:label xml:lang="fr">sousClasseDe</rdfs:label>
<rdfs:comment>Indicates membership of a class</rdfs:comment>
<rdfs:range rdf:resource="#Class"/>
<rdfs:domain rdf:resource="#Class"/>
</rdf:Property>
<rdf:Property ID="subPropertyOf">
<rdfs:label xml:lang="en">subPropertyOf</rdfs:label>
<rdfs:label xml:lang="fr">sousPropri<72>t<EFBFBD>De</rdfs:label>
<rdfs:comment>Indicates specialization of properties</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
<rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
</rdf:Property>
<rdf:Property ID="seeAlso">
<rdfs:label xml:lang="en">seeAlso</rdfs:label>
<rdfs:label xml:lang="fr">voirAussi</rdfs:label>
<rdfs:comment>Indicates a resource that provides information about the subject resource.</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
<rdfs:domain rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
</rdf:Property>
<rdf:Property ID="isDefinedBy">
<rdf:type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
<rdfs:subPropertyOf rdf:resource="#seeAlso"/>
<rdfs:label xml:lang="en">isDefinedBy</rdfs:label>
<rdfs:label xml:lang="fr">esD<73>finiPar</rdfs:label>
<rdfs:comment>Indicates a resource containing and defining the subject resource.</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
<rdfs:domain rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
</rdf:Property>
<rdfs:Class rdf:ID="ConstraintResource">
<rdfs:label xml:lang="en">ConstraintResource</rdfs:label>
<rdfs:label xml:lang="fr">RessourceContrainte</rdfs:label>
<rdf:type resource="#Class"/>
<rdfs:subClassOf rdf:resource="#Resource"/>
<rdfs:comment>Resources used to express RDF Schema constraints.</rdfs:comment>
</rdfs:Class>
<rdfs:Class rdf:ID="ConstraintProperty">
<rdfs:label xml:lang="en">ConstraintProperty</rdfs:label>
<rdfs:label xml:lang="fr">Propri<72>t<EFBFBD>Contrainte</rdfs:label>
<rdfs:subClassOf rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
<rdfs:subClassOf rdf:resource="#ConstraintResource"/>
<rdfs:comment>Properties used to express RDF Schema constraints.</rdfs:comment>
</rdfs:Class>
<rdfs:ConstraintProperty rdf:ID="domain">
<rdfs:label xml:lang="en">domain</rdfs:label>
<rdfs:label xml:lang="fr">domaine</rdfs:label>
<rdfs:comment>This is how we associate a class with
properties that its instances can have</rdfs:comment>
</rdfs:ConstraintProperty>
<rdfs:ConstraintProperty rdf:ID="range">
<rdfs:label xml:lang="en">range</rdfs:label>
<rdfs:label xml:lang="fr"><3E>tendue</rdfs:label>
<rdfs:comment>Properties that can be used in a
schema to provide constraints</rdfs:comment>
<rdfs:range rdf:resource="#Class"/>
<rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
</rdfs:ConstraintProperty>
<rdfs:Class rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property">
<rdfs:label xml:lang="en">Property</rdfs:label>
<rdfs:label xml:lang="fr">Propri<72>t<EFBFBD></rdfs:label>
<rdfs:comment>The concept of a property.</rdfs:comment>
<rdfs:subClassOf rdf:resource="#Resource"/>
</rdfs:Class>
<rdfs:Class rdf:ID="Literal">
<rdfs:label xml:lang="en">Literal</rdfs:label>
<rdfs:label xml:lang="fr">Litt<74>ral</rdfs:label>
<rdf:type resource="#Class"/>
<rdfs:comment>This represents the set of atomic values, eg. textual strings.</rdfs:comment>
</rdfs:Class>
<rdfs:Class rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement">
<rdfs:label xml:lang="en">Statement</rdfs:label>
<rdfs:label xml:lang="fr">D<>claration</rdfs:label>
<rdfs:subClassOf rdf:resource="#Resource"/>
<rdfs:comment>This represents the set of reified statements.</rdfs:comment>
</rdfs:Class>
<rdf:Property about="http://www.w3.org/1999/02/22-rdf-syntax-ns#subject">
<rdfs:label xml:lang="en">subject</rdfs:label>
<rdfs:label xml:lang="fr">sujet</rdfs:label>
<rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"/>
<rdfs:range rdf:resource="#Resource"/>
</rdf:Property>
<rdf:Property about="http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate">
<rdfs:label xml:lang="en">predicate</rdfs:label>
<rdfs:label xml:lang="fr">pr<70>dicat</rdfs:label>
<rdf:type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
<rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"/>
<rdfs:range rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
</rdf:Property>
<rdf:Property about="http://www.w3.org/1999/02/22-rdf-syntax-ns#object">
<rdfs:label xml:lang="en">object</rdfs:label>
<rdfs:label xml:lang="fr">objet</rdfs:label>
<rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"/>
</rdf:Property>
<rdfs:Class rdf:ID="Container">
<rdfs:label xml:lang="en">Container</rdfs:label>
<rdfs:label xml:lang="fr">Enveloppe</rdfs:label>
<rdfs:subClassOf rdf:resource="#Resource"/>
<rdfs:comment>This represents the set Containers.</rdfs:comment>
</rdfs:Class>
<rdfs:Class rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag">
<rdfs:label xml:lang="en">Bag</rdfs:label>
<rdfs:label xml:lang="fr">Ensemble</rdfs:label>
<rdfs:subClassOf rdf:resource="#Container"/>
</rdfs:Class>
<rdfs:Class rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq">
<rdfs:label xml:lang="en">Sequence</rdfs:label>
<rdfs:label xml:lang="fr">S<>quence</rdfs:label>
<rdfs:subClassOf rdf:resource="#Container"/>
</rdfs:Class>
<rdfs:Class rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt">
<rdfs:label xml:lang="en">Alt</rdfs:label>
<rdfs:label xml:lang="fr">Choix</rdfs:label>
<rdfs:subClassOf rdf:resource="#Container"/>
</rdfs:Class>
<rdfs:Class rdf:ID="ContainerMembershipProperty">
<rdfs:label xml:lang="en">ContainerMembershipProperty</rdfs:label>
<rdfs:subClassOf rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
</rdfs:Class>
<rdf:Property rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#value">
<rdfs:label xml:lang="en">object</rdfs:label>
<rdfs:label xml:lang="fr">value</rdfs:label>
</rdf:Property>
</rdf:RDF>

View File

@@ -0,0 +1,25 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<!-- Version Wed Apr 12 12:09:19 CEST 2000 -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/TR/1999/PR-rdf-schema-19990303#"
xmlns:rdfutil="http://www.w3.org/rdfutil#"
xmlns:protege="http://smi-web.stanford.edu/projects/protege/protege-rdf/protege-19992012#">
<rdf:Description rdf:ID="OntologyObjectMetaClass">
<rdf:type rdf:resource="http://www.w3.org/TR/1999/PR-rdf-schema-19990303#Class"/>
<rdfs:subClassOf rdf:resource="http://www.w3.org/TR/1999/PR-rdf-schema-19990303#Class"/>
<protege:abstractProperty>concrete</protege:abstractProperty>
</rdf:Description>
<rdf:Description rdf:ID="identifier">
<rdf:type rdf:resource="http://www.w3.org/TR/1999/PR-rdf-schema-19990303#Property"/>
<rdfutil:facets>
<rdfutil:facetResource>
<rdfutil:domain rdf:resource="#OntologyObjectMetaClass"/>
<rdfutil:range rdf:resource="http://www.w3.org/TR/xmlschema-2/#string"/>
<rdfutil:cardinality>1</rdfutil:cardinality>
</rdfutil:facetResource>
</rdfutil:facets>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,14 @@
<?xml version='1.0'?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.w3.org/Home/Lassila">
<s:Creator rdf:ID="statement1">Ora Lassila</s:Creator>
</rdf:Description>
<!-- The statement saying that i believe the above statement -->
<rdf:Description about="#statement1">
<s:believedBy>Stefan Decker</s:believedBy>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,11 @@
<?xml version='1.0'?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:my="http://www.mytypes.org/schema/">
<my:Bicycle wheels="2"/>
<rdf:Description type="http://www.mytypes.org/schema/Bicycle">
<my:wheels>2</my:wheels>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- Example from REC-rdf-syntax, demonstrating abbrevation -->
<RDF
xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:n="http://www.nist.gov/units/">
<Description about="John_Smith">
<n:weight rdf:ID="JohnWeight" rdf:parseType="Resource">
<rdf:value>200</rdf:value>
<n:units rdf:resource="http://www.nist.gov/units/Pounds"/>
</n:weight>
</Description>
</RDF>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!-- Test space handling for mixed literal/compound -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description about="John_Smith">
<a1>John</a1>
<a1>
<rdf:Description>
<v>200</v>
<t>pounds</t>
</rdf:Description>
</a1>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version='1.0'?>
<!-- Test inline description -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.swi.psy.uva.nl/projects/SWI-Prolog/">
<s:Creator rdf:ID="JW">
<rdf:Description>
<name>Jan Wielemaker</name>
<works_at>SWI</works_at>
</rdf:Description>
</s:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,15 @@
<?xml version='1.0'?>
<!-- Test attribute-bag -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.swi.psy.uva.nl/projects/xpce/">
<s:Creator>
<rdf:Bag>
<rdf:li>Jan Wielemaker</rdf:li>
<rdf:li>Anjo Anjewierden</rdf:li>
</rdf:Bag>
</s:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,17 @@
<?xml version='1.0'?>
<!-- Test attribute-bag -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://description.org/schema/">
<rdf:Description about="http://www.swi.psy.uva.nl/projects/xpce/">
<s:Creator>
<rdf:Bag>
<rdf:li parseType="Resource">
<name>Jan Wielemaker</name>
<employed_at>SWI</employed_at>
</rdf:li>
</rdf:Bag>
</s:Creator>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!-- Copied from Pro Solutions RDF parser examples -->
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:NIST="http://www.nist.gov/RDFschema/">
<Description about="John_Smith">
<NIST:Weight>
<Description ID="weight_001">
<NIST:Units rdf:resource="http://www.nist.gov/units/pounds"/>
<value xmlns="">200</value>
</Description>
</NIST:Weight>
</Description>
</RDF>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:DC="http://purl.org/metadata/dublin_core/"
xmlns:DS="http://www.w3.org/Schemas/DS-Schema/">
<Description about="http://www.bar.com/some.doc" bagID="Statement_001">
<DC:Creator>John Smith</DC:Creator>
</Description>
<Description aboutEach="#Statement_001">
<DS:CreatedOn>1998-02-06T14:00Z</DS:CreatedOn>
<DS:CreatedBy>Jane Cooper</DS:CreatedBy>
</Description>
</RDF>

View File

@@ -0,0 +1,22 @@
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:first="http://www.w3.org/2002/03owlt/I5.8/inconsistent001#"
xml:base="http://www.w3.org/2002/03owlt/I5.8/inconsistent001" >
<rdf:Description rdf:ID="john">
<rdf:type>
<owl:Restriction>
<owl:onProperty>
<owl:DatatypeProperty rdf:ID="p">
<rdfs:range rdf:resource=
"http://www.w3.org/2001/XMLSchema#byte" />
</owl:DatatypeProperty>
</owl:onProperty>
<owl:cardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">257</owl:cardinality>
</owl:Restriction>
</rdf:type>
</rdf:Description>
</rdf:RDF>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE rdf [
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!ENTITY xsd "http://www.w3.org/2000/10/XMLSchema#">
<!ENTITY t "http://www.swi.psy.uva.nl/test#">
]>
<rdf:RDF
xmlns:rdf ="&rdf;"
xmlns:xsd ="&xsd;"
xmlns:t="&t;"
>
<t:test rdf:ID="id1">
<t:a rdf:parseType="Literal"><b>strong</b></t:a>
</t:test>
</rdf:RDF>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE rdf [
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!ENTITY xsd "http://www.w3.org/2000/10/XMLSchema#">
<!ENTITY t "http://www.swi.psy.uva.nl/test#">
]>
<rdf:RDF
xmlns:rdf ="&rdf;"
xmlns:xsd ="&xsd;"
xmlns:t="&t;"
>
<t:test rdf:ID="id1">
<t:int rdf:datatype="&xsd;int">42</t:int>
</t:test>
</rdf:RDF>