semantics

HTML time tag for duration

▼魔方 西西 提交于 2019-11-30 20:44:01
I need to display the duration of a video. Should I use <time> or should it be used only for displaying time as in a clock? Example Is this correct HTML5? <p>Duration: <time>3:30 min</time>.</p> Or should <time> be used only on a situation like this? <p>Good morning. The actual time is: <time>9:45</time></p>. Docs MDN presents the following definition: The HTML element represents either a time on a 24-hour clock or a precise date in the Gregorian calendar (with optional time and timezone information). This element is intended to be used presenting dates and times in a machine readable format.

How to extend ontology with other standard ontologies in Protégé?

你。 提交于 2019-11-30 20:33:37
I am building an ontology using Protégé, but wan to extend it with other standard ontologies such as frbr, prov, and org. Is there a standard way to integrate our ontology with these standard ontologies or can we merge these ontologies with each other? I want to do these tasks using Protégé. Joshua Taylor Unless I'm missing something about your question (which didn't really provide enough information to diagnose the problem that you're actually having), this is what owl:imports is for. You can import other (OWL) ontologies into your own. In Protégé, you just use the Ontology imports under the

Form tag won't enclose elements inside a table

牧云@^-^@ 提交于 2019-11-30 18:18:21
I've run into a curious problem; I've got a form inside a <tr> , however the form refuses to wrap any tags inside it. I've made a quick JSFiddle here to play around with. Firebug reports that the form isn't wrapping anything: The <form> element is greyed out and not wrapping anything. The HTML for this test is below <table> <form> <tr> <td>Input</td> <td>Another input</td> </tr> <tr> <td colspan="4"><span>Other stuff</span></td> </tr> </form> <tr> <td> Rows not affected by the form </td> </tr> <tr> <td> Rows not affected by the form </td> </tr> </table> As can be seen, the form holds two tr s

Does an else if statement exist?

我的梦境 提交于 2019-11-30 17:59:34
Some time ago after not standing anymore lines like this: if (arg) invk(test); else if (test) { alot(); stuff(); } I decided for my self its better for readability in our 1920x1200 times, to not omit the {} . So I wrote a tool that reformats my existing code. later I noticed a bug in that tool resulting in if (x) { ... } else if(y) { ... } else if(z) { ... } had been changed (wihtout obvisiously changing the behavior) into: if (x) { ... } else { if(y) { ... } else { if(z) { ... } } } This made me realize (unintended) that this is actually what a else if does by syntax and semantical rules of C

What does the HTML acronym “span” stands for?

谁都会走 提交于 2019-11-30 17:48:39
I guess that <div> might actually stand for: "division" since it creates a division in the document by separating content before and after it. Am I right? But <span> is a little bit more obscure on its meaning. I made some googling on this and found some interesting options: "Super Passive Analyzer Node", "SPAce Node", "Simple Plain Access Node". Does anyone know the right acronym for <span> ? Pretty hard to find out what was going on in the minds of the creators of HTML4, where SPAN first appeared. I tracked down the original draft of the standard , but there is nothing said about the naming,

Why can an instance of a class access private fields of another instance of its own type?

家住魔仙堡 提交于 2019-11-30 17:18:33
An instance of a class, in Java, can access private fields of a different instance of its own type, such as in the following listing: public class Foo { private int secret; public void bar(final Foo foo) { foo.secret = 100; } } What would be the argument for such semantics (when designing a language)? Well, first you have to ask "why have private fields at all?" Private fields are primarily for encapsulation: a user of a a class shouldn't have to know the internals of that class' implementation. In fact, they shouldn't know, because if they relied on those specifics, then the implementer would

MongoDB : Update Modifier semantics of “$unset”

风流意气都作罢 提交于 2019-11-30 15:55:11
问题 In MongoDB, the update modifier unset works as follows: Consider a Mongo DB Database db with a collection users . Users contain a Document, of the following format: //Document for a user with username: joe { "_id" : ObjectId("4df5b9cf9f9a92b1584fff16"), "relationships" : { "enemies" : 2, "friends" : 33, "terminated" : "many" }, "username" : "joe" } If I want to remove the terminated key, I have to specify the $unset update modifier as follows: >db.users.update({"username":"joe"},{"$unset":{

MongoDB : Update Modifier semantics of “$unset”

我的梦境 提交于 2019-11-30 14:45:52
In MongoDB, the update modifier unset works as follows: Consider a Mongo DB Database db with a collection users . Users contain a Document, of the following format: //Document for a user with username: joe { "_id" : ObjectId("4df5b9cf9f9a92b1584fff16"), "relationships" : { "enemies" : 2, "friends" : 33, "terminated" : "many" }, "username" : "joe" } If I want to remove the terminated key, I have to specify the $unset update modifier as follows: >db.users.update({"username":"joe"},{"$unset":{"relationships.terminated": "many"}}); My Question is, why do I have to specify the ENTIRE KEY VALUE PAIR

“Strictly positive” in Agda

为君一笑 提交于 2019-11-30 12:44:25
问题 I'm trying to encode some denotational semantics into Agda based on a program I wrote in Haskell. data Value = FunVal (Value -> Value) | PriVal Int | ConVal Id [Value] | Error String In Agda, the direct translation would be; data Value : Set where FunVal : (Value -> Value) -> Value PriVal : ℕ -> Value ConVal : String -> List Value -> Value Error : String -> Value but I get an error relating to the FunVal because; Value is not strictly positive, because it occurs to the left of an arrow in the

How get DBpedia data in a specific language?

限于喜欢 提交于 2019-11-30 12:18:50
i tried this request http://lookup.dbpedia.org/api/search.asmx/KeywordSearch?QueryClass=film&QueryString=transformers&MaxHits=1 but if i want to retrieve info in italian language? it there another service (similar this) that can? You could use dbpedia SPARQL endpoint to run query. For example: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?film ?description ?film_name WHERE { ?film rdf:type <http://dbpedia.org/ontology/Film>. ?film foaf:name ?film_name. ?film rdfs:comment