-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using full IRI instead of prefix #45
Comments
Unfortunately, only prefixed names are supported by the SWRLAPI parser. |
possible to modify the api to allow that?
2018-04-25 23:12 GMT+02:00 martinjoconnor <[email protected]>:
… Unfortunately, only prefixed names are supported by the SWRLAPI parser.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AT0gtcaCQRDz4b0xO0Wv8Gse2clzuMRPks5tsObAgaJpZM4TjHGC>
.
--
------------------------------
Cristian Andres Narvaez Alarcon
Estudiante de Maestría en Ingeniería de Sistemas y Computación
Universidad Nacional de Colombia
|
It would be quite a bit of work, unfortunately. |
Ok thanks :D
2018-04-30 13:06 GMT-05:00 martinjoconnor <[email protected]>:
… It would be quite a bit of work, unfortunately.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AT0gtT5h9vDdhU1yr0i84aPAF-fa0Fxwks5tt1K2gaJpZM4TjHGC>
.
--
------------------------------
Cristian Andres Narvaez Alarcon
Estudiante de Maestría en Ingeniería de Sistemas y Computación
Universidad Nacional de Colombia
|
Note that you may be able to handle this in your code depending in how you are doing the rule generation. You can generate a unique prefix (e.g., For example, if you encounter a URI
Then substitute the namespace + localname for the prefixed form in the rule (e.g., You will effectively be building a temporary prefix map. |
Hi Marting,
Thanks, this is very useful I will try
2018-05-07 18:18 GMT-05:00 martinjoconnor <[email protected]>:
… Note that you may be able to handle this in your code depending in how you
are doing the rule generation.
You can generate a unique prefix (e.g.,autogen0) for each namespace
without a prefix in the ontology and set this prefix using the OWLAPI so
that the SWRL parser will recognize the prefix.
For example, if you encounter a URI http:/example.com/Classes/Dog where
http:/example.com/Classes/ has no prefix definition you can do the
following:
manager.getOntologyFormat(ontology).asPrefixOWLOntologyFormat().setDefaultPrefix("autogen" + i++, "http:/example.com/Classes/");
Then substitute the namespace + localname for the prefixed form in the
rule (e.g., autogen0:Dog) and the parsing will work.
You will effectively be building a temporary prefix map.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AT0gte-eFr1aa_hLrDp-pgB2LbSiOwVhks5twNZFgaJpZM4TjHGC>
.
--
------------------------------
Cristian Andres Narvaez Alarcon
Estudiante de Maestría en Ingeniería de Sistemas y Computación
Universidad Nacional de Colombia
|
Hi,
I'm working with a rdf stream which is generated from a JSON file, the tool I use give me a turtle file without prefixes. It seems that SWRL only work with prefixes, I try to write http://xmlns.com/foaf/0.1/Person
instead of foaf:Person In the SWRL tab and it does't work, says that html is not a prefix.
Can I use this in any way? or I have to create the prefixes (not god because we don't know the procedence of the data all times).
Here is the result file.
salida.ttl.txt
Thanks 😃
The text was updated successfully, but these errors were encountered: