semantic

Zemanta/Open Calais, how do they do that.

Hi, I was wondering how as semantic service like Open Calais figures out the names of companies, or people, tech concepts ,keywords etc from a piece of text. Is it because they have a large database that they match the text against? How would a service like Zemanta know what images to suggest to a piece of text for instance? Was hop...

How do you make wrong code look wrong? What patterns do you use to avoid semantic errors?

Ever since I first made the mistake of doing an assignment in an if I've always written my ifs like this: if (CONST == variable) { to avoid the common (at least for me) mistake of doing this: if (variable = CONST) { //WRONG, assigning 0 to variable And since I read Joel Spolsky's essay Making Wrong Code Look Wrong I've been trying ...

Is elegant, semantic CSS with ASP.Net still a pipe dream?

I know Microsoft has made efforts in the direction of semantic and cross-browser compliant XHTML and CSS, but it still seems like a PitA to pull off elegant markup. I've downloaded and tweaked the CSS Friendly Adapters and all that. But I still find myself frustrated with bloated and unattractive code. Is elegant, semantic CSS with ASP....

Is there an algorithm that tells the semantic similarity of two phrases

input: phrase 1, phrase 2 output: semantic similarity value (between 0 and 1), or the probability these two phrases are talking about the same thing ...

When is the best time to use <b> and <i> in lieu of <strong> and <em>, if ever?

Semantically speaking, is there an appropriate place in today's websites (late 2008+) where using the bold <b> and italic <i> tags are more useful than the more widely used <strong> and <em> tags? ...

Are there any tools to visualize a RDF graph? (please include a screenshot)

I'm looking for a tool that will render a RDF graph in a reasonably useful graphic format. The primary purpose of the graphic format being inclusion into a PowerPoint slide or printing on a large plotter for management review. I am currently using TopBraid Composer which does a reasonably well at visualizing a single entity but doesn't...

Is there an algorithm that extracts meaningful tags of english text

I would like to extract a reduced collection of "meaningful" tags (10 max) out of an english text of any size. http://tagcrowd.com/ is quite interesting but the algorithm seems very basic (just word counting) Is there any other existing algorithm to do this? ...

DIVs vs. TABLEs a rebuttal please

There are lots of people out there asking "why shouldn't we use tables for structuring our HTML" and while a lot of answers come in, I rarely see anyone being converted to the world of semantics. That said, I've yet to see any convincing rebuttals to support the rationale for why we should (or might) use tables. Anyone care to offer a r...

When is a language considered a scripting language?

What makes a language a scripting language? I've heard some people say "when it gets interpreted instead of compiled". That would make PHP (for example) a scripting language. Is that the only criterion? Or are there other criteria? See also: What’s the difference between a “script” and an “application”? ...

Do you leverage Semantic Web technologies? Why or why not?

I'm interested in understanding why people choose to leverage technology built on the W3C Semantic Web standards. How did you make the decision to use the technology you chose and what does it enable you to do that you identify as being unique to the Semantic Web effort? If you have specifically made the decision not to use Semantic We...

Friendly url scheme?

One of the many things that's been lacking from my scraper service that I set up last week are pretty URLs. Right now the user parameter is being passed into the script with ?u=, which is a symptom of a lazy hack (which the script admittedly is). However, I've been thinking about redoing it and I'd like to get some feedback on the option...

Is there a difference between `==` and `is` in python?

My Google-fu has failed me. In Python, are these: n = 5 # Test one. if n == 5: print 'Yay!' # Test two. if n is 5: print 'Yay!' two tests for equality equivalent (ha!)? Does this hold true for objects where you would be comparing instances (a list say)? Okay, so this kind of answers my question: l = list() l.append(1) if l...

What you think about default pass-by-reference semantics on C++?

EDIT: This question is more about language engineering than C++ itself. I used C++ as an example to show what I wanted, mostly because I use it daily. I didn't want to know how it works on C++ but open a discussion on how it could be done. That's not the way it works right now, that's the way I wish it could be done, and that would brea...

What is the opposite of 'parse'?

I have a function, parseQuery, that parses a SQL query into an abstract representation of that query. I'm about to write a function that takes an abstract representation of a query and returns a SQL query string. What should I call the second function? ...

value semantics and pointer semantics?

what does it mean by value semantics and what is mean by implicit pointer semantics? ...

What is the difference between a process and a thread

What is the technical difference between a process and a thread? I get the feeling a word like 'process' is over used and there is also hardware and software threads. How about light-weight processes in languages like Erlang? Is there a definitive reason to use one term over the other? ...

Are semantics and syntax the same?

I don't understand the meaning of semantic and the meaning of syntax! What are they? And what's the difference between things like "semantic website vs. normal website", "semantic social networking vs. normal social networking" etc... I don't get it! HELP! ...

A "regex for words" (semantic replacement) - any example syntax and libraries?

I'm looking for syntatic examples or common techniques for doing regular expression style transformations on words instead of characters, given a procedural language. For example, to trace copying, one would want to create a document with similar meaning but with different word choices. I'd like to be able to concisely define these po...

is using class names like 'right' considered bad practice?

If I have class names such as "left", "right", "clear" and xhtml like <a href="index.php" class="right continueLink">Continue</a> With CSS like .right { float: right; } I know it's not a semantic name, but it does make things much easier sometimes. Anyway, what are your thoughts? ...

H1 in article page - site title or article title?

Within an article-oriented page (such as a blog post), the <h1> element (level 1 heading) is commonly used to markup either: the blog title (i.e. the often-large site title at the top of the page, not to the <title> element), or the article title What is the best choice and why? To the site owner, who may want to shout out to the wo...