This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package no.s11.owlapi; | |
import java.io.File; | |
import org.semanticweb.owlapi.apibinding.OWLManager; | |
import org.semanticweb.owlapi.model.OWLOntology; | |
import org.semanticweb.owlapi.model.OWLOntologyCreationException; | |
import org.semanticweb.owlapi.model.OWLOntologyManager; | |
import org.semanticweb.owlapi.profiles.OWL2RLProfile; | |
import org.semanticweb.owlapi.profiles.OWLProfileReport; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix : <http://www.w3.org/ns/openannotation/core/#> . | |
@prefix oa: <http://www.w3.org/ns/openannotation/core/> . | |
@prefix owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@base <http://www.w3.org/ns/openannotation/core/> . | |
<http://www.w3.org/ns/openannotation/core/> rdf:type owl:Ontology ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @base <file:/tmp/test3494635138365893811/workflowrun.prov.ttl> . | |
@prefix cnt: <http://www.w3.org/2011/content#> . | |
@prefix dcterms: <http://purl.org/dc/terms/> . | |
@prefix doap: <http://usefulinc.com/ns/doap#> . | |
@prefix owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix prov: <http://www.w3.org/ns/prov#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix scufl2: <http://ns.taverna.org.uk/2010/scufl2#> . | |
@prefix tavernaprov: <http://ns.taverna.org.uk/2012/tavernaprov/> . | |
@prefix wfdesc: <http://purl.org/wf4ever/wfdesc#> . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.owlapitest; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertTrue; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.Set; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:Man rdf:type owl:Class . | |
:Person rdf:type owl:Class . | |
[ rdf:type owl:Axiom ; | |
rdfs:comment "How beautiful"@en ; | |
owl:annotatedSource :Man ; | |
owl:annotatedTarget :Person ; | |
owl:annotatedProperty rdfs:subClassOf | |
] . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix dcterms: <http://purl.org/dc/terms/> . | |
@prefix dcam: <http://purl.org/dc/dcam/> . | |
<http://example.com/page.html> dcterms:format <http://purl.org/NET/mediatypes/text/html> . | |
<http://purl.org/NET/mediatypes/text/html> a dcterms:FileFormat ; | |
dcam:memberOf dcterms:IMT ; | |
rdf:value "text/html" ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="owl2html.xslt"?> | |
<rdf:RDF xmlns="http://example.com/ontology/" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |
xmlns:dct="http://purl.org/dc/terms/" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema#" | |
xmlns:owl="http://www.w3.org/2002/07/owl#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stain@ralph-ubuntu:~/Desktop$ profilechecker test.owl --all | |
OWL2DLProfile: OK | |
OWL2ELProfile: 1 violations | |
OWL2Profile: OK | |
OWL2QLProfile: 1 violations | |
OWL2RLProfile: 1 violations | |
stain@ralph-ubuntu:~/Desktop$ profilechecker test.owl OWL2RLProfile | |
Use of non-superclass expression in position that requires a superclass expression: ObjectUnionOf(<http://www.semanticweb.org/stain/ontologies/2013/1/untitled-ontology-2#A> <http://www.semanticweb.org/stain/ontologies/2013/1/untitled-ontology-2#B>) [ObjectPropertyRange(<http://www.semanticweb.org/stain/ontologies/2013/1/untitled-ontology-2#a_or_b> ObjectUnionOf(<http://www.semanticweb.org/stain/ontologies/2013/1/untitled-ontology-2#A> <http://www.semanticweb.org/stain/ontologies/2013/1/untitled-ontology-2#B>)) in OntologyID(OntologyIRI(<http://www.semanticweb.org/stain/ontologies/2013/1/untitled-ontology-2>))] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": { | |
"oa": "http://www.w3.org/ns/oa#", | |
"cnt": "http://www.w3.org/2011/content#", | |
"dc": "http://purl.org/dc/elements/1.1/", | |
"dcterms": "http://purl.org/dc/terms/", | |
"dctypes": "http://purl.org/dc/dcmitype/", | |
"foaf": "http://xmlns.com/foaf/0.1/", | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stain@ralph-ubuntu:~$ cwm --rdf=T http://www.hkcr.net/ccd/ccd-a28b82c7-fab4-471d-96bf-000bc83acbdc.xsd --n3=d/r | |
#Processed by Id: cwm.py,v 1.197 2007/12/13 15:38:39 syosi Exp | |
# using base http://www.hkcr.net/ccd/ccd-a28b82c7-fab4-471d-96bf-000bc83acbdc.xsd | |
# Notation3 generation by | |
# notation3.py,v 1.200 2007/12/11 21:18:08 syosi Exp | |
# Base was: http://www.hkcr.net/ccd/ccd-a28b82c7-fab4-471d-96bf-000bc83acbdc.xsd | |
@prefix data-view: <http://www.w3.org/2003/g/data-view#> . | |
@prefix dc: <http://purl.org/dc/elements/1.1/> . |
OlderNewer