Skip to content

Commit

Permalink
Merge pull request #362 from LiUSemWeb/361-convert-vocabularies-to-ow…
Browse files Browse the repository at this point in the history
…l-ontologies

WIP: Converts vocabularies to OWL ontologies
  • Loading branch information
hartig authored Sep 24, 2024
2 parents e937794 + 8b85d25 commit 2d99962
Show file tree
Hide file tree
Showing 11 changed files with 195 additions and 189 deletions.
2 changes: 1 addition & 1 deletion ExampleEngineConf.ttl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>
PREFIX ec: <http://w3id.org/hefquin/engineconf#>
PREFIX ex: <http://example.org/>

[] rdf:type ec:HeFQUINEngineConfiguration ;
Expand Down
2 changes: 1 addition & 1 deletion ExampleLPG2RDF.ttl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX lr: <http://www.example.org/se/liu/ida/hefquin/lpg2rdf#>
PREFIX lr: <http://w3id.org/hefquin/lpg2rdf#>
PREFIX ex: <http://example.org/>

ex:myExampleConfig a lr:LPGtoRDFConfiguration ;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class HeFQUINEngineConfigReaderTest
@Test
public void instantiateImplicitCtor() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
+ System.lineSeparator()
Expand All @@ -43,7 +43,7 @@ public void instantiateImplicitCtor() throws ClassNotFoundException, NoSuchMetho
@Test
public void instantiateEmptyCtor1() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
+ System.lineSeparator()
Expand All @@ -63,7 +63,7 @@ public void instantiateEmptyCtor1() throws ClassNotFoundException, NoSuchMethodE
@Test
public void instantiateEmptyCtor2() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
+ System.lineSeparator()
Expand All @@ -84,7 +84,7 @@ public void instantiateEmptyCtor2() throws ClassNotFoundException, NoSuchMethodE
@Test
public void instantiateCtorArgs1() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
Expand All @@ -111,7 +111,7 @@ public void instantiateCtorArgs1() throws ClassNotFoundException, NoSuchMethodEx
@Test
public void instantiateCtorArgs2() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
Expand Down Expand Up @@ -139,7 +139,7 @@ public void instantiateCtorArgs2() throws ClassNotFoundException, NoSuchMethodEx
@Test(expected = NoSuchMethodException.class)
public void instantiateNoSuchConstructor1() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
Expand All @@ -159,7 +159,7 @@ public void instantiateNoSuchConstructor1() throws ClassNotFoundException, NoSuc
@Test(expected = NoSuchMethodException.class)
public void instantiateNoSuchConstructor2() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
Expand All @@ -177,7 +177,7 @@ public void instantiateNoSuchConstructor2() throws ClassNotFoundException, NoSuc
@Test(expected = IllegalArgumentException.class)
public void instantiateWithIllegalConstructorArgs() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
Expand All @@ -197,7 +197,7 @@ public void instantiateWithIllegalConstructorArgs() throws ClassNotFoundExceptio
@Test(expected = IllegalArgumentException.class)
public void instantiateWithUnknownDesignatedArgValue() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
Expand All @@ -215,7 +215,7 @@ public void instantiateWithUnknownDesignatedArgValue() throws ClassNotFoundExcep
@Test
public void instantiateWithDesignatedArgValue1() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
Expand All @@ -241,7 +241,7 @@ public void instantiateWithDesignatedArgValue1() throws ClassNotFoundException,
@Test
public void instantiateWithDesignatedArgValue2() throws ClassNotFoundException, NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException {
final Resource r = parseAndCreateResource(
"PREFIX ec: <http://www.example.org/se/liu/ida/hefquin/engineconf#>" + System.lineSeparator()
"PREFIX ec: <http://w3id.org/hefquin/engineconf#>" + System.lineSeparator()
+ "PREFIX ex: <http://example.org/>" + System.lineSeparator()
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>" + System.lineSeparator()
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>" + System.lineSeparator()
Expand Down
Loading

0 comments on commit 2d99962

Please sign in to comment.