Browsable RDFS Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: ontoware/rdf/hillairet/extracted
Source used for this grammar: Guillaume Hillairet, Resource Description Framework Schema (RDFS), RDFS.ecore, 2006/06/07

Summary

Syntax

Resource ::=
	Graph
Resource ::=
	List
Resource ::=
	Container
Resource ::=
	Property
Resource ::=
	Statement
Resource ::=
	URIReferenceNode
Resource ::=
	BlankNode
Resource ::=
	Class
Resource ::=
	Literal
Resource ::=
	[graph]::Graph [uriRef]::URIReference+ [subjectStatement]::Statement+ [objectStatement]::Statement+ [label]::PlainLiteral+ [type]::Class+ [seeAlso]::Resource+ [referringResource]::Resource+ [member]::Resource+ [container]::Resource+ [list]::List+
Graph ::=
	[graphName]::URIReference [resources]::Resource+
List ::=
	[first]::Resource [rest]::List [originalList]::List+
Container ::=
	Alt
Container ::=
	Bag
Container ::=
	Seq
Container ::=
	Alt
	Bag
	Seq
Alt ::=
	ε
Bag ::=
	ε
Seq ::=
	ε
Property ::=
	[predicateStatement]::Statement+ [subPropertyOf]::Property+ [superProperty]::Property+ [domain]::Class+ [range]::Class+
ContainerMembershipProperty ::=
	ε
Statement ::=
	[predicate]::Property [object]::Resource [subject]::Resource [isReifiedOnly]::Boolean [isReified]::Boolean [nameForReification]::URIReference+
URIReferenceNode ::=
	[graph]::Graph [uriRef]::URIReference+ [subjectStatement]::Statement+ [objectStatement]::Statement+ [label]::PlainLiteral+ [type]::Class+ [seeAlso]::Resource+ [referringResource]::Resource+ [member]::Resource+ [container]::Resource+ [list]::List+
BlankNode ::=
	[nodeId]::String
Class ::=
	Datatype
Class ::=
	[subClassOf]::Class+ [superClass]::Class+ [typedResource]::Resource+ [propertyForDomain]::Property+ [propertyForRange]::Property+
Datatype ::=
	[subClassOf]::Class+ [superClass]::Class+ [typedResource]::Resource+ [propertyForDomain]::Property+ [propertyForRange]::Property+
Literal ::=
	PlainLiteral
Literal ::=
	TypedLiteral
Literal ::=
	[lexicalForm]::String
PlainLiteral ::=
	[language]::String [labeledResource]::Resource
TypedLiteral ::=
	RDFXMLLiteral
TypedLiteral ::=
	[datatypeURI]::URIReference
RDFXMLLiteral ::=
	[datatypeURI]::URIReference
URIReference ::=
	UniformResourceIdentifier
URIReference ::=
	[uri]::UniformResourceIdentifier [resource]::Resource [literal]::TypedLiteral [namedGraph]::Graph [reifiedStatement]::Statement+
UniformResourceIdentifier ::=
	[name]::String [uriRef]::URIReference+
Boolean ::=
	"true"
	"false"
Integer ::=
	integer
String ::=
	string

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []