I have created a new ontology in Protege. The IRI is something like this
http://www.semanticweb.org/Computer1/ontologies/2016/8/untitled-ontology-10
Why the naming is like a URL? Does that mean my ontology is loaded to semanticweb.org? My concern is the privacy of my data.
I noticed that I can change the IRI to a local address in my machine but still I want to know is there any option in protege that may upload my data somewhere?
No, the IRI is simply /looking/ like a URL. Your data will not be published anywhere unless you do so yourself.
Related
I want to publish my ontology online. I saw many ontologies are using https://essepuntato.it/lode/
and I do not understand what is this link that is needed? Can I just use the link that is in Protege's default Ontology IRI?
E.g.: http://www.semanticweb.org/PCuser/ontologies/2023/1/untitled-ontology-66
If not, how can I proceed?
I constantly get different errors and not sure what to do.
We are using the Hybris platform, and our products URL are like below.
I am new to Hybris platform but I know about URL structure, and I think something is going wrong here. I've checked other Hybris sites and other Hybris sites have short and clean URLs. Any suggestion?
http://shop.cintas.com/store/site/c/Southport-Skirt/p/11361733?searchText=:price-asc&plpcategoryCode=Eco
http://shop.cintas.com/store/site/Apparel/Headwear/Knit-Cap/p/00013120?searchText=:price-asc&plpcategoryCode=Apparel
You can change the URLs by changing the ProductModelUrlResolver and ProductDataUrlResolver. Hybris uses them to determine the URL for products throughout the system. Keep in mind, that the URL needs to end with the pattern of the ProductPageController "/**/p/{productCode}".
You can replace the bean declaration. There is even some possibility to configure the resolvers via a URL pattern (see attribute "defaultPattern" of ProductModelUrlResolver). However for further adaptions, you need to change the implementation of the classes.
See classes:
de.hybris.platform.commerceservices.url.impl.DefaultProductModelUrlResolver
de.hybris.platform.commercefacades.url.impl.DefaultProductDataUrlResolver
and corresponding beans:
productModelUrlResolver
productDataUrlResolver
See also my post here:
How to normalize URLs in Hybris
These urls generated by Apparel sample accelerator, you can create your own URL Strategy. You need development for it.
Your question is very common... So hard to answer... But for the ProductPageController there is a logic that all sites on
/**/p/{productCode}
Are handled by the ProductPageController. There is a logic that pages ends with /p/{productCode} will handle the request and replace the front part with the name of a product,...
Mabye this helps you and you can more specify your question?
BR
I need to control Rational DOORS client from a custom application (in java, if that matters).
Requirement is very simple: to open the DOORS client pointing to a specific requirement (as specified by its tag). DOORS client can then remain open or be closed independently from my app.
I do not really know DOORS and neither use it for my daily work, so my competence is very limited.
Ideal would be to build a URL containing the query to point directly to the needed element. Is that possible?
Every requirement in DOORS has a URL. The URL format is
doors://<Server>:<Port>/ ?.............
The URL can be fetched by opening the properties of the requirement. To make things easy, A DOORS manager can provide an export the Requirement-ID against the URL in an Excel.
I want to know the best programming technique to switch languages in the software or website. So anyone can give me some suggestions? Thanks!
There is no standard. But I used the following technique in websites.
Put all the visible strings (eg. "file", "menu", "contact us") in a file or database. It can be xml, json or any format that you easily parse later. Make sure all the data is saved in different directory/db tables according to locale/language.
Wrap all the strings with a function or static class method. Every time they are displayed they'll go through some processing.
When you first load the software or web determine the locale or language that user wants to use.
According to users choice select the string source. database, filepath etc. For e.g. if user want to see strings in en_GB locale, find strings in en_GB folder or in lang_en_GB table. Naming format is in your hand.
Now each time the function or static class method is called find strings in the source you selected on Step 4.
It depends on the language you are using. Many have built in support for it. In android for example what you do is store all strings into an xml file that is named based on the region. And the operating system will automatically use the appropriate resources based on the phones region.
Look into what support your language/platform includes. You will want to externalize all your string constants such as "Press the menu button" into an external file. Then just get this file translated to each language you want to support, and use the OS to automatically use the correct resource file. Or if the platform/OS does not support such a thing write some code to determine which resource file to use yourself.
Where could I find out the content type for a specific file format/extension?
For example, I know that an mp3 can be one of the following content types:
'application/mp3', 'application/x-mp3', 'audio/mpeg', 'audio/mp3'
What would be the content type for a zip file? Where would I find out that information for other content types?
I need this for purposes of validation with ruby on rail's paperclip plugin.
Thanks!
Update: I just found this and thought it may be useful to other people
I know that an mp3 can be one of the following content types
Only audio/mpeg is valid. The rest are bogus and won't generally work anywhere.
What would be the content type for a zip file?
application/zip.
Where would I find out that information for other content types?
The proper list of all registered media types is at IANA. Of course, there are many more types that have not been registered, largely those with the x prefix.
If you want to find out on the fly what your machine thinks a particular extension is using a server-side script, you can find that in an OS-specific place. On Windows, the file extension/type information is stored in the Registry. On desktop Linux, it's in /usr/share/mime. On an Apache web server, you might want to re-use Apache's mime.types table.
for a specific file format/extension?
File extensions are unstandardised, and not a reliable way of checking the type of a resource on the web, including a file upload. File-extension-to-media-type mappings are an OS/installation-specific issue so you can't know what media type a file is from extension on another machine. Furthermore, some operating systems don't even use file extensions to determine type (or only use them as a fallback).
Even looking at the Content-Type supplied with a file upload is of little use, since it's so often wrong due to bad setup at the client side. I guess this is why the bogus types like application/mp3 have crept into the list above, because some time one browser somewhere on a badly-set-up machine sent the wrong type. But browsers can always send any old wrong type... you're just as likely to get a text/plain MP3.
If you need to allow the user to set a definitive content-type for the uploaded resource, you'll have to let them manually pick it. Of course you can use a bit of script hacking to make useful guesses like “if it ends with .jpeg, it's probably a JPEG” and make that selection automatically. But in the general case it is not reliable to guess type from user-submitted file extension.