Skip to content

Commit

Permalink
Add basic example project
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed Oct 20, 2024
1 parent 13fdaf3 commit 1690981
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/org.eclipse.epsilon.examples.emc.rdf/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.epsilon.examples.emc.rdf</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
15 changes: 15 additions & 0 deletions examples/org.eclipse.epsilon.examples.emc.rdf/Run Queries.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.epsilon.eol.eclipse.dt.launching.EolLaunchConfigurationDelegate">
<booleanAttribute key="fine_grained_profiling" value="false"/>
<stringAttribute key="implementation_name" value="Parallel"/>
<listAttribute key="models">
<listEntry value="aliases=&#10;name=Model&#10;prefixes=&#10;type=RDF&#10;uris=file\:///Volumes/Sources/emc-rdf/examples/org.eclipse.epsilon.examples.emc.rdf/spiderman.ttl"/>
</listAttribute>
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<intAttribute key="parallelism" value="11"/>
<listAttribute key="parameters"/>
<booleanAttribute key="profile_model_loading" value="false"/>
<booleanAttribute key="profiling_enabled" value="false"/>
<booleanAttribute key="reset_profiler" value="false"/>
<stringAttribute key="source" value="/org.eclipse.epsilon.examples.emc.rdf/queries.eol"/>
</launchConfiguration>
4 changes: 4 additions & 0 deletions examples/org.eclipse.epsilon.examples.emc.rdf/queries.eol
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Person.all.println('People: ');

var goblin = Model.getElementById('http://example.org/#green-goblin');
goblin.enemyOf.println('Green Goblin is an enemy of: ');
17 changes: 17 additions & 0 deletions examples/org.eclipse.epsilon.examples.emc.rdf/spiderman.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Sample Turtle document from the W3C: https://www.w3.org/TR/turtle/#sec-intro

@base <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rel: <http://www.perceive.net/schemas/relationship/> .

<#green-goblin>
rel:enemyOf <#spiderman> ;
a foaf:Person ; # in the context of the Marvel universe
foaf:name "Green Goblin" .

<#spiderman>
rel:enemyOf <#green-goblin> ;
a foaf:Person ;
foaf:name "Spiderman", "Человек-паук"@ru .

0 comments on commit 1690981

Please sign in to comment.